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

Issue 9226037: Cancel prerenders from Omnibox if we navigate to a different URL than predicted (Closed)

Created:
8 years, 11 months ago by dominich
Modified:
8 years, 10 months ago
Reviewers:
cbentzel, Peter Kasting
CC:
chromium-reviews, tburkard+watch_chromium.org, cbentzel+watch_chromium.org, James Su, dominich+watch_chromium.org, mmenke
Visibility:
Public.

Description

Cancel prerenders from Omnibox if we navigate to a different URL than predicted. I also took the opportunity to align the order of methods in prerender_manager.cc to that of the header (as it should be) and make a couple of methods const. BUG=110799, 111350 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=119699 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=119928

Patch Set 1 #

Patch Set 2 : Remove debug logging #

Total comments: 10

Patch Set 3 : Reorg prerender_manager.cc to match header. Add tests for cancellation. #

Total comments: 6

Patch Set 4 : rebase and constify #

Patch Set 5 : Fix leak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+565 lines, -480 lines) Patch
M chrome/browser/autocomplete/network_action_predictor.cc View 1 2 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_manager.h View 1 2 3 4 7 chunks +16 lines, -16 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 11 chunks +471 lines, -459 lines 0 comments Download
M chrome/browser/prerender/prerender_manager_unittest.cc View 1 2 3 4 9 chunks +67 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
dominich
8 years, 11 months ago (2012-01-20 23:39:02 UTC) #1
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/9226037/diff/4001/chrome/browser/autocomplete/network_action_predictor.cc File chrome/browser/autocomplete/network_action_predictor.cc (right): https://chromiumcodereview.appspot.com/9226037/diff/4001/chrome/browser/autocomplete/network_action_predictor.cc#newcode242 chrome/browser/autocomplete/network_action_predictor.cc:242: prerender::PrerenderManager* prerender_manager = Nit: Does it make sense ...
8 years, 11 months ago (2012-01-21 00:22:51 UTC) #2
cbentzel
Tests? Perhaps add a new FINAL_STATUS option to see how frequent this form of abandonment ...
8 years, 11 months ago (2012-01-21 02:29:08 UTC) #3
Peter Kasting
http://codereview.chromium.org/9226037/diff/4001/chrome/browser/autocomplete/network_action_predictor.cc File chrome/browser/autocomplete/network_action_predictor.cc (right): http://codereview.chromium.org/9226037/diff/4001/chrome/browser/autocomplete/network_action_predictor.cc#newcode244 chrome/browser/autocomplete/network_action_predictor.cc:244: if (prerender_manager && !prerender_manager->IsPrerendering(opened_url)) On 2012/01/21 02:29:09, cbentzel wrote: ...
8 years, 11 months ago (2012-01-21 22:46:07 UTC) #4
dominich
On 2012/01/21 02:29:08, cbentzel wrote: > Tests? On the way. > > Perhaps add a ...
8 years, 11 months ago (2012-01-23 18:33:37 UTC) #5
dominich
https://chromiumcodereview.appspot.com/9226037/diff/4001/chrome/browser/autocomplete/network_action_predictor.cc File chrome/browser/autocomplete/network_action_predictor.cc (right): https://chromiumcodereview.appspot.com/9226037/diff/4001/chrome/browser/autocomplete/network_action_predictor.cc#newcode242 chrome/browser/autocomplete/network_action_predictor.cc:242: prerender::PrerenderManager* prerender_manager = On 2012/01/21 00:22:52, Peter Kasting wrote: ...
8 years, 11 months ago (2012-01-23 22:50:07 UTC) #6
Peter Kasting
https://chromiumcodereview.appspot.com/9226037/diff/8001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc (right): https://chromiumcodereview.appspot.com/9226037/diff/8001/chrome/browser/prerender/prerender_manager.cc#newcode297 chrome/browser/prerender/prerender_manager.cc:297: for (std::list<PrerenderContentsData>::iterator it = prerender_list_.begin(); Nit: I wonder if ...
8 years, 11 months ago (2012-01-24 03:36:59 UTC) #7
cbentzel
LGTM - no need for an additional round of reviews from me. http://codereview.chromium.org/9226037/diff/8001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc ...
8 years, 11 months ago (2012-01-25 12:14:01 UTC) #8
dominich
pkasting: I'm assuming your LGTM still stands as only a comment was added since the ...
8 years, 11 months ago (2012-01-25 17:42:23 UTC) #9
dominich
http://codereview.chromium.org/9226037/diff/8001/chrome/browser/prerender/prerender_manager.h File chrome/browser/prerender/prerender_manager.h (right): http://codereview.chromium.org/9226037/diff/8001/chrome/browser/prerender/prerender_manager.h#newcode224 chrome/browser/prerender/prerender_manager.h:224: // TODO(dominich): This should be a const method but ...
8 years, 11 months ago (2012-01-25 23:09:23 UTC) #10
cbentzel
LGTM
8 years, 10 months ago (2012-01-30 15:24:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominich@chromium.org/9226037/17001
8 years, 10 months ago (2012-01-30 17:37:02 UTC) #12
commit-bot: I haz the power
Change committed as 119699
8 years, 10 months ago (2012-01-30 19:02:33 UTC) #13
dominich
cbentzel: Fixed leak, PTAL Leak was caused by querying PrerenderManager to get a non-cancelled prerender ...
8 years, 10 months ago (2012-01-31 00:54:43 UTC) #14
cbentzel
LGTM. Please run on an appropriate memory trybot first to ensure that the leak is ...
8 years, 10 months ago (2012-01-31 12:43:35 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominich@chromium.org/9226037/23002
8 years, 10 months ago (2012-01-31 17:18:25 UTC) #16
commit-bot: I haz the power
8 years, 10 months ago (2012-01-31 18:55:42 UTC) #17
Change committed as 119928

Powered by Google App Engine
This is Rietveld 408576698