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

Issue 146983002: Move pending prerender logic into PrerenderLinkManager. (Closed)

Created:
6 years, 11 months ago by davidben
Modified:
6 years, 10 months ago
Reviewers:
gavinp
CC:
chromium-reviews, tburkard+watch_chromium.org, gavinp+prer_chromium.org, cbentzel+watch_chromium.org, dominich+watch_chromium.org, davidben+watch_chromium.org
Visibility:
Public.

Description

Move pending prerender logic into PrerenderLinkManager. Pending prerenders should not count towards max_link_concurrency. Fix and re-enable the tests accordingly. This also removes the last instances of unpaired content::RunMessageLoop() / base::MessageLoop::current()->Quit() calls in the browser tests. All waiting should now use the new base::RunLoop-based code. Also add a new test to check pending prerenders are canceled when their launching prerenders are. BUG=333276, 167792, 145248, 307592 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248646

Patch Set 1 #

Total comments: 2

Patch Set 2 : Appease clang #

Patch Set 3 : Fix prerender_unittests #

Total comments: 19

Patch Set 4 : gavinp comments #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -312 lines) Patch
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 11 chunks +72 lines, -57 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 7 chunks +9 lines, -37 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 3 4 chunks +21 lines, -52 lines 0 comments Download
M chrome/browser/prerender/prerender_link_manager.h View 1 2 3 6 chunks +20 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_link_manager.cc View 1 2 3 6 chunks +107 lines, -14 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.h View 1 2 3 4 3 chunks +6 lines, -12 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 4 6 chunks +11 lines, -90 lines 0 comments Download
M chrome/browser/prerender/prerender_tracker_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_unittest.cc View 1 2 12 chunks +94 lines, -47 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
davidben
https://codereview.chromium.org/146983002/diff/1/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): https://codereview.chromium.org/146983002/diff/1/chrome/browser/prerender/prerender_browsertest.cc#newcode2171 chrome/browser/prerender/prerender_browsertest.cc:2171: // the page load one. Not entirely thrilled by ...
6 years, 11 months ago (2014-01-24 17:50:43 UTC) #1
davidben
Alright, hopefully that fixes prerender_unittest.cc. I'm not very happy about adding another virtual hook to ...
6 years, 11 months ago (2014-01-24 21:47:06 UTC) #2
gavinp
Overall, great. Only style nits, as you can see. I'm glad to see prerender_manager.cc get ...
6 years, 10 months ago (2014-01-30 19:58:48 UTC) #3
davidben
https://codereview.chromium.org/146983002/diff/160001/chrome/browser/prerender/prerender_contents.cc File chrome/browser/prerender/prerender_contents.cc (right): https://codereview.chromium.org/146983002/diff/160001/chrome/browser/prerender/prerender_contents.cc#newcode198 chrome/browser/prerender/prerender_contents.cc:198: void PrerenderContents::PrepareForUse() { On 2014/01/30 19:58:49, gavinp wrote: > ...
6 years, 10 months ago (2014-01-30 21:01:51 UTC) #4
gavinp
lgtm
6 years, 10 months ago (2014-01-31 22:01:43 UTC) #5
davidben
The CQ bit was checked by davidben@chromium.org
6 years, 10 months ago (2014-01-31 22:03:43 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/146983002/260001
6 years, 10 months ago (2014-01-31 22:06:08 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-01-31 22:29:04 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=221663
6 years, 10 months ago (2014-01-31 22:29:04 UTC) #9
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 22:29:08 UTC) #10
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 22:29:17 UTC) #11
davidben
On 2014/01/31 22:29:17, I haz the power (commit-bot) wrote: > CQ bit was unchecked on ...
6 years, 10 months ago (2014-01-31 22:56:32 UTC) #12
davidben
The CQ bit was checked by davidben@chromium.org
6 years, 10 months ago (2014-01-31 22:56:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/146983002/260001
6 years, 10 months ago (2014-01-31 22:57:14 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-01-31 23:42:34 UTC) #15
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=221737
6 years, 10 months ago (2014-01-31 23:42:34 UTC) #16
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 23:42:42 UTC) #17
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-31 23:42:42 UTC) #18
davidben
The CQ bit was checked by davidben@chromium.org
6 years, 10 months ago (2014-02-03 17:06:59 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/146983002/260001
6 years, 10 months ago (2014-02-03 17:07:17 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-03 17:41:21 UTC) #21
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=222294
6 years, 10 months ago (2014-02-03 17:41:21 UTC) #22
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-03 17:41:26 UTC) #23
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-03 17:41:29 UTC) #24
davidben
The CQ bit was checked by davidben@chromium.org
6 years, 10 months ago (2014-02-03 23:52:17 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidben@chromium.org/146983002/260001
6 years, 10 months ago (2014-02-03 23:56:55 UTC) #26
commit-bot: I haz the power
6 years, 10 months ago (2014-02-04 01:13:05 UTC) #27
Message was sent while issue was closed.
Change committed as 248646

Powered by Google App Engine
This is Rietveld 408576698