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

Issue 338633003: Prerender Instant search base url on omnibox focus event (Closed)

Created:
6 years, 6 months ago by sidharthms
Modified:
6 years, 6 months ago
Reviewers:
Jered, kmadhusu
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Prerender Instant search base url on omnibox focus event. Prerenders the Instant search base page URL on omnibox focus event provided the underlying page is not a search results page and not in incognito profile. Prerender request for the current tab is cancelled when a navigation entry is committed or when the current tab is deactivated. BUG=384106 TEST=Run canary chrome with the following flags: --prefetch-search-results --prerender=enabled --force-fieldtrials="EmbeddedSearch/Group1 prerender_instant_url_on_omnibox_focus:1" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278731

Patch Set 1 #

Patch Set 2 : Rebase on master #

Total comments: 2

Patch Set 3 : Comments addressed #

Total comments: 4

Patch Set 4 : Update to handle corner case #

Total comments: 4

Patch Set 5 : Comments addressed #

Patch Set 6 : Omnibox check added #

Total comments: 6

Patch Set 7 : Comments addressed #

Total comments: 2

Patch Set 8 : Active Navgiation check added #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -0 lines) Patch
M chrome/browser/ui/search/search_tab_helper.cc View 1 2 3 4 5 6 7 3 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
sidharthms
6 years, 6 months ago (2014-06-14 00:22:10 UTC) #1
kmadhusu
On 2014/06/14 00:22:10, sidharthms wrote: +jered@ to the reviewers list. I tested your changes. As ...
6 years, 6 months ago (2014-06-16 19:02:39 UTC) #2
Jered
https://codereview.chromium.org/338633003/diff/20001/chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc File chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc (right): https://codereview.chromium.org/338633003/diff/20001/chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc#newcode110 chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc:110: return; Omit this statement since it will happen anyway.
6 years, 6 months ago (2014-06-16 22:43:13 UTC) #3
sidharthms
Updated. Please take a look https://codereview.chromium.org/338633003/diff/20001/chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc File chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc (right): https://codereview.chromium.org/338633003/diff/20001/chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc#newcode110 chrome/browser/ui/omnibox/omnibox_current_page_delegate_impl.cc:110: return; On 2014/06/16 22:43:13, ...
6 years, 6 months ago (2014-06-17 03:58:46 UTC) #4
kmadhusu
https://codereview.chromium.org/338633003/diff/40001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/338633003/diff/40001/chrome/browser/ui/browser.cc#newcode921 chrome/browser/ui/browser.cc:921: instant_controller_->TabInsertedAt(contents, index, foreground); As per our discussion, you are ...
6 years, 6 months ago (2014-06-17 18:29:35 UTC) #5
sidharthms
https://codereview.chromium.org/338633003/diff/40001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/338633003/diff/40001/chrome/browser/ui/browser.cc#newcode921 chrome/browser/ui/browser.cc:921: instant_controller_->TabInsertedAt(contents, index, foreground); On 2014/06/17 18:29:35, kmadhusu wrote: > ...
6 years, 6 months ago (2014-06-17 21:52:24 UTC) #6
kmadhusu
This is looking good. Can you add a test? Thanks. https://codereview.chromium.org/338633003/diff/60001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/338633003/diff/60001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode371 ...
6 years, 6 months ago (2014-06-18 16:23:51 UTC) #7
sidharthms
Tests are coming soon... https://codereview.chromium.org/338633003/diff/60001/chrome/browser/ui/omnibox/omnibox_edit_model.cc File chrome/browser/ui/omnibox/omnibox_edit_model.cc (right): https://codereview.chromium.org/338633003/diff/60001/chrome/browser/ui/omnibox/omnibox_edit_model.cc#newcode371 chrome/browser/ui/omnibox/omnibox_edit_model.cc:371: if (prerenderer && !chrome::ShouldPrerenderInstantUrlOnOmniboxFocus() && ...
6 years, 6 months ago (2014-06-19 20:36:52 UTC) #8
kmadhusu
lgtm. As we discussed, you can add the tests in a follow up CL. Thanks. ...
6 years, 6 months ago (2014-06-19 20:44:55 UTC) #9
sidharthms
https://codereview.chromium.org/338633003/diff/100001/chrome/browser/ui/search/search_tab_helper.cc File chrome/browser/ui/search/search_tab_helper.cc (right): https://codereview.chromium.org/338633003/diff/100001/chrome/browser/ui/search/search_tab_helper.cc#newcode181 chrome/browser/ui/search/search_tab_helper.cc:181: return; On 2014/06/19 20:44:54, kmadhusu wrote: > style nit: ...
6 years, 6 months ago (2014-06-19 20:57:16 UTC) #10
Jered
https://codereview.chromium.org/338633003/diff/120001/chrome/browser/ui/search/search_tab_helper.cc File chrome/browser/ui/search/search_tab_helper.cc (right): https://codereview.chromium.org/338633003/diff/120001/chrome/browser/ui/search/search_tab_helper.cc#newcode173 chrome/browser/ui/search/search_tab_helper.cc:173: if (web_contents_->GetController().GetPendingEntry() == NULL) { This check makes me ...
6 years, 6 months ago (2014-06-19 21:09:47 UTC) #11
sidharthms
https://codereview.chromium.org/338633003/diff/120001/chrome/browser/ui/search/search_tab_helper.cc File chrome/browser/ui/search/search_tab_helper.cc (right): https://codereview.chromium.org/338633003/diff/120001/chrome/browser/ui/search/search_tab_helper.cc#newcode173 chrome/browser/ui/search/search_tab_helper.cc:173: if (web_contents_->GetController().GetPendingEntry() == NULL) { On 2014/06/19 21:09:46, Jered ...
6 years, 6 months ago (2014-06-20 00:31:44 UTC) #12
Jered
On 2014/06/20 00:31:44, sidharthms wrote: > https://codereview.chromium.org/338633003/diff/120001/chrome/browser/ui/search/search_tab_helper.cc > File chrome/browser/ui/search/search_tab_helper.cc (right): > > https://codereview.chromium.org/338633003/diff/120001/chrome/browser/ui/search/search_tab_helper.cc#newcode173 > ...
6 years, 6 months ago (2014-06-20 00:35:12 UTC) #13
sidharthms
The CQ bit was checked by sidharthms@chromium.org
6 years, 6 months ago (2014-06-20 01:09:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sidharthms@chromium.org/338633003/140001
6 years, 6 months ago (2014-06-20 01:10:54 UTC) #15
sidharthms
The CQ bit was unchecked by sidharthms@chromium.org
6 years, 6 months ago (2014-06-20 16:13:02 UTC) #16
sidharthms
The CQ bit was checked by sidharthms@chromium.org
6 years, 6 months ago (2014-06-20 16:22:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sidharthms@chromium.org/338633003/140001
6 years, 6 months ago (2014-06-20 16:24:46 UTC) #18
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 17:08:05 UTC) #19
Message was sent while issue was closed.
Change committed as 278731

Powered by Google App Engine
This is Rietveld 408576698