Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Issue 1117923004: Run load state update timer only when needed (Closed)

Created:
5 years, 7 months ago by Andre
Modified:
5 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@cpu
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Run load state update timer only when needed Run the load state update timer only when there is any tab that is loading. Otherwise, the timer would run indefinitely on pages using a hanging GET request. BUG=483287 Committed: https://crrev.com/9d01994498c14fbb7a84ef7c423ea8be9501cd31 Cr-Commit-Position: refs/heads/master@{#331588}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add comments #

Total comments: 5

Patch Set 3 : Rebase off http://crrev.com/1130343006 #

Total comments: 12

Patch Set 4 : Fixes for mmenke #

Total comments: 2

Patch Set 5 : Fix for mmenke #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -10 lines) Patch
M content/browser/loader/resource_dispatcher_host_impl.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 4 chunks +11 lines, -8 lines 0 comments Download
M content/browser/loader/resource_scheduler.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/loader/resource_scheduler.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (6 generated)
Andre
mmenke, this is still rough and unfinished, but wanted to get your opinion first on ...
5 years, 7 months ago (2015-05-05 20:06:49 UTC) #2
mmenke
Unclear if WebContentsImpl::LoadStateChanged affects anything when not loading - we do still update load_state_, load_state_host_, ...
5 years, 7 months ago (2015-05-05 21:42:18 UTC) #3
mmenke
On 2015/05/05 21:42:18, mmenke wrote: > Unclear if WebContentsImpl::LoadStateChanged affects anything when not loading - ...
5 years, 7 months ago (2015-05-05 21:43:19 UTC) #4
Andre
load_state_ and load_state_host_ seems to be used only for status text, while waiting_for_response_ is used ...
5 years, 7 months ago (2015-05-05 22:11:53 UTC) #5
Andre
Added comments in patchset 2. mmenke, PTAL.
5 years, 7 months ago (2015-05-06 16:55:01 UTC) #6
mmenke
On 2015/05/05 22:11:53, Andre wrote: > load_state_ and load_state_host_ seems to be used only for ...
5 years, 7 months ago (2015-05-06 18:45:17 UTC) #7
Andre
Thanks! Waiting until after branch SGTM. Looks like there is already a ScopedTracker in ResourceDispatcherHostImpl::UpdateLoadInfoOnUIThread, ...
5 years, 7 months ago (2015-05-06 19:51:31 UTC) #8
mmenke
On 2015/05/06 19:51:31, Andre wrote: > Thanks! > Waiting until after branch SGTM. > Looks ...
5 years, 7 months ago (2015-05-06 19:55:38 UTC) #9
mmenke
On 2015/05/06 19:55:38, mmenke wrote: > On 2015/05/06 19:51:31, Andre wrote: > > Thanks! > ...
5 years, 7 months ago (2015-05-07 15:30:17 UTC) #10
Andre
I may need your help to figure out how to test this. I looked at ...
5 years, 7 months ago (2015-05-07 19:31:49 UTC) #11
mmenke
Happy to help with tests. I'll take a look tomorrow. I inherited basically all of ...
5 years, 7 months ago (2015-05-07 19:49:30 UTC) #12
Andre
mmenke, M44 has branched. Time to try to land this?
5 years, 7 months ago (2015-05-18 18:07:20 UTC) #13
mmenke
On 2015/05/18 18:07:20, Andre wrote: > mmenke, M44 has branched. Time to try to land ...
5 years, 7 months ago (2015-05-18 20:14:58 UTC) #14
mmenke
On 2015/05/18 20:14:58, mmenke wrote: > On 2015/05/18 18:07:20, Andre wrote: > > mmenke, M44 ...
5 years, 7 months ago (2015-05-19 18:58:26 UTC) #15
Andre
Uploaded patchset 3, now based off http://crrev.com/1130343006. https://codereview.chromium.org/1117923004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1117923004/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode117 content/browser/loader/resource_dispatcher_host_impl.cc:117: const int ...
5 years, 7 months ago (2015-05-20 23:05:32 UTC) #16
mmenke
Looks pretty good https://codereview.chromium.org/1117923004/diff/20001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/1117923004/diff/20001/content/browser/loader/resource_scheduler.cc#newcode1009 content/browser/loader/resource_scheduler.cc:1009: for (auto& client : client_map_) { ...
5 years, 7 months ago (2015-05-21 15:53:25 UTC) #17
Andre
PTAL https://codereview.chromium.org/1117923004/diff/20001/content/browser/loader/resource_scheduler.cc File content/browser/loader/resource_scheduler.cc (right): https://codereview.chromium.org/1117923004/diff/20001/content/browser/loader/resource_scheduler.cc#newcode1009 content/browser/loader/resource_scheduler.cc:1009: for (auto& client : client_map_) { On 2015/05/21 ...
5 years, 7 months ago (2015-05-21 22:05:39 UTC) #19
mmenke
LGTM. You'll need a content/public owner to sign off, too (And shouldn't CQ this on ...
5 years, 7 months ago (2015-05-22 15:19:24 UTC) #20
Andre
https://codereview.chromium.org/1117923004/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1117923004/diff/80001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode2210 content/browser/loader/resource_dispatcher_host_impl.cc:2210: // on a Google Docs document. On 2015/05/22 15:19:24, ...
5 years, 7 months ago (2015-05-22 17:30:21 UTC) #21
Andre
+Avi for content/public.
5 years, 7 months ago (2015-05-22 17:31:50 UTC) #23
Avi (use Gerrit)
content/public lgtm
5 years, 7 months ago (2015-05-22 21:22:56 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1117923004/140001
5 years, 7 months ago (2015-05-27 16:56:05 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:140001)
5 years, 7 months ago (2015-05-27 17:01:14 UTC) #29
commit-bot: I haz the power
5 years, 7 months ago (2015-05-27 17:02:33 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9d01994498c14fbb7a84ef7c423ea8be9501cd31
Cr-Commit-Position: refs/heads/master@{#331588}

Powered by Google App Engine
This is Rietveld 408576698