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

Issue 7210020: Added prerendering to omnibox. (Closed)

Created:
9 years, 6 months ago by dominich
Modified:
9 years, 6 months ago
CC:
chromium-reviews, tburkard+watch_chromium.org, cbentzel+watch_chromium.org, dominich+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Added prerendering to omnibox. Enable through --prerender-from-omnibox command-line-flag or through the about:flag with the same name. Only effective if prerender is enabled and instant is disabled or restricted to search. BUG=87124 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=90384

Patch Set 1 #

Patch Set 2 : Remove TODO #

Total comments: 13

Patch Set 3 : Comment response and Preload -> Prerender #

Patch Set 4 : Fix compile error. #

Total comments: 4

Patch Set 5 : Rename update_instant_ and refactor conditionals. #

Total comments: 4

Patch Set 6 : Fix inverted boolean #

Total comments: 2

Patch Set 7 : Added origin for prerenders. #

Patch Set 8 : More histograms/rebase #

Total comments: 21

Patch Set 9 : Responses #

Patch Set 10 : Rename methods and remove PENDING origin #

Patch Set 11 : But not strongly enough. Origin histogram removed. #

Total comments: 4

Patch Set 12 : rebase #

Patch Set 13 : Fix win unit test build #

Patch Set 14 : rebase #

Patch Set 15 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -163 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit.h View 1 2 3 4 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit.cc View 1 2 3 4 5 6 7 8 9 6 chunks +29 lines, -17 lines 0 comments Download
M chrome/browser/instant/instant_controller.h View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 4 5 6 7 8 9 5 chunks +27 lines, -10 lines 0 comments Download
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +32 lines, -27 lines 0 comments Download
M chrome/browser/prerender/prerender_final_status.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_final_status.cc View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_manager.h View 1 2 3 4 5 6 7 8 9 6 chunks +27 lines, -17 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 3 4 5 6 7 8 9 10 19 chunks +45 lines, -22 lines 0 comments Download
M chrome/browser/prerender/prerender_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 26 chunks +40 lines, -39 lines 0 comments Download
M chrome/browser/prerender/prerender_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prerender/prerender_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -6 lines 0 comments Download
A chrome/browser/prerender/prerender_origin.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/browser/prerender/prerender_origin.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_tracker.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prerender/prerender_tracker_unittest.cc View 1 2 3 7 chunks +8 lines, -8 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
dominich
I should have someone else review this for the chrome/app/*, chrome/browser/about_flags.cc and chrome/common/* changes but ...
9 years, 6 months ago (2011-06-20 17:22:01 UTC) #1
cbentzel
pkasting may be a good person to look at this as well. I'm worried that ...
9 years, 6 months ago (2011-06-20 18:06:01 UTC) #2
dominich
On 2011/06/20 18:06:01, cbentzel wrote: > pkasting may be a good person to look at ...
9 years, 6 months ago (2011-06-20 18:13:59 UTC) #3
sky
http://codereview.chromium.org/7210020/diff/1011/chrome/browser/autocomplete/autocomplete_edit.cc File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/7210020/diff/1011/chrome/browser/autocomplete/autocomplete_edit.cc#newcode242 chrome/browser/autocomplete/autocomplete_edit.cc:242: prerender_manager->AddPrerenderWithNoTag( Is this cumulative? Meaning might I end up ...
9 years, 6 months ago (2011-06-20 18:15:54 UTC) #4
cbentzel
http://codereview.chromium.org/7210020/diff/1011/chrome/browser/autocomplete/autocomplete_edit.cc File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/7210020/diff/1011/chrome/browser/autocomplete/autocomplete_edit.cc#newcode242 chrome/browser/autocomplete/autocomplete_edit.cc:242: prerender_manager->AddPrerenderWithNoTag( On 2011/06/20 18:15:54, sky wrote: > Is this ...
9 years, 6 months ago (2011-06-20 18:28:59 UTC) #5
dominich
http://codereview.chromium.org/7210020/diff/1011/chrome/browser/autocomplete/autocomplete_edit.cc File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/7210020/diff/1011/chrome/browser/autocomplete/autocomplete_edit.cc#newcode242 chrome/browser/autocomplete/autocomplete_edit.cc:242: prerender_manager->AddPrerenderWithNoTag( On 2011/06/20 18:15:54, sky wrote: > Is this ...
9 years, 6 months ago (2011-06-20 18:39:59 UTC) #6
sky
http://codereview.chromium.org/7210020/diff/4002/chrome/browser/autocomplete/autocomplete_edit.cc File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/7210020/diff/4002/chrome/browser/autocomplete/autocomplete_edit.cc#newcode235 chrome/browser/autocomplete/autocomplete_edit.cc:235: } else if (tab && tab->tab_contents()) { Combine your ...
9 years, 6 months ago (2011-06-20 19:29:23 UTC) #7
dominich
I'm still going to look into how we can add info to histograms and potentially ...
9 years, 6 months ago (2011-06-20 20:48:40 UTC) #8
sky
http://codereview.chromium.org/7210020/diff/37/chrome/browser/autocomplete/autocomplete_edit.cc File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/7210020/diff/37/chrome/browser/autocomplete/autocomplete_edit.cc#newcode85 chrome/browser/autocomplete/autocomplete_edit.cc:85: in_revert_(true), Sorry I wasn't clear. in_revert_ and update_instant_ are ...
9 years, 6 months ago (2011-06-20 20:53:49 UTC) #9
dominich
http://codereview.chromium.org/7210020/diff/37/chrome/browser/autocomplete/autocomplete_edit.cc File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/7210020/diff/37/chrome/browser/autocomplete/autocomplete_edit.cc#newcode85 chrome/browser/autocomplete/autocomplete_edit.cc:85: in_revert_(true), On 2011/06/20 20:53:49, sky wrote: > Sorry I ...
9 years, 6 months ago (2011-06-20 21:02:36 UTC) #10
sky
LGTM http://codereview.chromium.org/7210020/diff/3004/chrome/browser/autocomplete/autocomplete_edit.cc File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/7210020/diff/3004/chrome/browser/autocomplete/autocomplete_edit.cc#newcode236 chrome/browser/autocomplete/autocomplete_edit.cc:236: } else if (tab->tab_contents() && user_input_in_progress() && Remove ...
9 years, 6 months ago (2011-06-20 21:11:44 UTC) #11
dominich
I've added a histogram to track how many prerenders we get from the omnibox vs ...
9 years, 6 months ago (2011-06-20 21:55:37 UTC) #12
cbentzel
+tburkard - he's been looking at other ways to break down the metrics per-source.
9 years, 6 months ago (2011-06-22 17:07:13 UTC) #13
cbentzel
Also - could you add a bug to help track this and reference it in ...
9 years, 6 months ago (2011-06-22 17:07:41 UTC) #14
cbentzel
It would be really nice to come up with a way to track all prerender ...
9 years, 6 months ago (2011-06-22 17:27:32 UTC) #15
cbentzel
One other "CL description" issue - could you add a description of the new about:flags ...
9 years, 6 months ago (2011-06-22 17:30:55 UTC) #16
dominich
On 2011/06/22 17:27:32, cbentzel wrote: > It would be really nice to come up with ...
9 years, 6 months ago (2011-06-22 18:32:01 UTC) #17
cbentzel
On Wed, Jun 22, 2011 at 2:32 PM, <dominich@chromium.org> wrote: > On 2011/06/22 17:27:32, cbentzel ...
9 years, 6 months ago (2011-06-22 18:39:16 UTC) #18
dominich.google
On Wed, Jun 22, 2011 at 11:39 AM, Chris Bentzel <cbentzel@chromium.org>wrote: > On Wed, Jun ...
9 years, 6 months ago (2011-06-22 18:46:36 UTC) #19
dominich
http://codereview.chromium.org/7210020/diff/12001/chrome/browser/autocomplete/autocomplete_edit.cc File chrome/browser/autocomplete/autocomplete_edit.cc (right): http://codereview.chromium.org/7210020/diff/12001/chrome/browser/autocomplete/autocomplete_edit.cc#newcode239 chrome/browser/autocomplete/autocomplete_edit.cc:239: if (cl->HasSwitch(switches::kPrerenderFromOmnibox)) { On 2011/06/22 17:27:32, cbentzel wrote: > ...
9 years, 6 months ago (2011-06-22 19:00:51 UTC) #20
cbentzel
Pretty much looks good. I want to remove the origin histogram, though. http://codereview.chromium.org/7210020/diff/12001/chrome/browser/prerender/prerender_manager.cc File chrome/browser/prerender/prerender_manager.cc ...
9 years, 6 months ago (2011-06-22 19:08:40 UTC) #21
dominich
Renamed methods and remove (now redundant) PENDING origin. I feel strongly about keeping the Origin ...
9 years, 6 months ago (2011-06-22 19:43:56 UTC) #22
cbentzel
LGTM Is there any way to write a browser test for this? I guess it's ...
9 years, 6 months ago (2011-06-22 20:02:17 UTC) #23
tburkard
http://codereview.chromium.org/7210020/diff/20003/chrome/browser/prerender/prerender_final_status.cc File chrome/browser/prerender/prerender_final_status.cc (right): http://codereview.chromium.org/7210020/diff/20003/chrome/browser/prerender/prerender_final_status.cc#newcode72 chrome/browser/prerender/prerender_final_status.cc:72: UMA_HISTOGRAM_ENUMERATION("Prerender.FinalStatus_Omnibox", Why not have a different top level name, ...
9 years, 6 months ago (2011-06-23 16:24:07 UTC) #24
dominich
http://codereview.chromium.org/7210020/diff/20003/chrome/browser/prerender/prerender_final_status.cc File chrome/browser/prerender/prerender_final_status.cc (right): http://codereview.chromium.org/7210020/diff/20003/chrome/browser/prerender/prerender_final_status.cc#newcode72 chrome/browser/prerender/prerender_final_status.cc:72: UMA_HISTOGRAM_ENUMERATION("Prerender.FinalStatus_Omnibox", On 2011/06/23 16:24:07, tburkard wrote: > Why not ...
9 years, 6 months ago (2011-06-23 16:32:47 UTC) #25
tburkard
LGTM Yes, that cleanup sounds like a good idea. I had a change already having ...
9 years, 6 months ago (2011-06-23 16:35:26 UTC) #26
Peter Kasting
sky is a better reviewer than me for this; removing myself.
9 years, 6 months ago (2011-06-23 19:10:38 UTC) #27
commit-bot: I haz the power
9 years, 6 months ago (2011-06-24 17:55:41 UTC) #28
Change committed as 90384

Powered by Google App Engine
This is Rietveld 408576698