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

Issue 16035020: Move instant support to SearchTabHelper. (Closed)

Created:
7 years, 6 months ago by kmadhusu
Modified:
7 years, 6 months ago
Reviewers:
samarth, Jered
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, mad+watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, Jered
Visibility:
Public.

Description

Move instant support to SearchTabHelper. This will also fix the search for RTL languages. Previously, instant_tab_ never "loses" instant support. But an instant_tab_ can lose the instant support by navigating to a non-extended page. In this CL, whenever a navigation entry is committed, we reset the instant support state of the instant_tab_ to INSTANT_SUPPORT_UNKNOWN and we determine the support once the page contents are loaded. BUG=247727, 246323 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207428

Patch Set 1 : '' #

Total comments: 12

Patch Set 2 : Rebase #

Patch Set 3 : Addressed comments #

Patch Set 4 : Fixed failing tests. #

Total comments: 4

Patch Set 5 : Rebase #

Patch Set 6 : Addressed comments #

Patch Set 7 : Add missing unit_test #

Total comments: 2

Patch Set 8 : '' #

Total comments: 8

Patch Set 9 : Rebase #

Patch Set 10 : Addressed nits #

Total comments: 6

Patch Set 11 : Addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+544 lines, -139 lines) Patch
M chrome/browser/ui/browser_instant_controller.cc View 1 2 3 4 5 6 7 8 9 2 chunks +19 lines, -16 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_extended_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +30 lines, -29 lines 0 comments Download
M chrome/browser/ui/search/instant_page.h View 1 2 3 4 5 6 7 8 9 10 8 chunks +15 lines, -22 lines 0 comments Download
M chrome/browser/ui/search/instant_page.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +49 lines, -50 lines 0 comments Download
M chrome/browser/ui/search/instant_page_unittest.cc View 5 chunks +69 lines, -3 lines 0 comments Download
M chrome/browser/ui/search/instant_tab.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/instant_test_utils.cc View 1 2 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/ui/search/search_model.h View 2 chunks +24 lines, -7 lines 0 comments Download
M chrome/browser/ui/search/search_model.cc View 2 chunks +32 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/search_model_unittest.cc View 6 1 chunk +160 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.h View 1 2 3 4 5 6 7 8 9 4 chunks +36 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 2 3 4 5 6 7 8 9 6 chunks +89 lines, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
kmadhusu
7 years, 6 months ago (2013-06-13 22:31:23 UTC) #1
samarth
This looks good at a high level, but I'll need to play with it more ...
7 years, 6 months ago (2013-06-14 00:17:09 UTC) #2
kmadhusu
On 2013/06/14 00:17:09, samarth wrote: > This looks good at a high level, but I'll ...
7 years, 6 months ago (2013-06-14 00:50:55 UTC) #3
kmadhusu
Addressed comments (still working on interactive_ui_tests). PTAL. Thanks. https://codereview.chromium.org/16035020/diff/23014/chrome/browser/ui/browser_instant_controller.cc File chrome/browser/ui/browser_instant_controller.cc (right): https://codereview.chromium.org/16035020/diff/23014/chrome/browser/ui/browser_instant_controller.cc#newcode271 chrome/browser/ui/browser_instant_controller.cc:271: old_state.instant_support ...
7 years, 6 months ago (2013-06-17 16:49:19 UTC) #4
kmadhusu
samarth: Fixed failing tests. PTAL. Thanks.
7 years, 6 months ago (2013-06-17 19:32:28 UTC) #5
samarth
https://codereview.chromium.org/16035020/diff/87004/chrome/browser/ui/search/search_tab_helper.cc File chrome/browser/ui/search/search_tab_helper.cc (right): https://codereview.chromium.org/16035020/diff/87004/chrome/browser/ui/search/search_tab_helper.cc#newcode119 chrome/browser/ui/search/search_tab_helper.cc:119: The notification details tell you whether this notification is ...
7 years, 6 months ago (2013-06-18 04:33:17 UTC) #6
samarth
FYI +jered to have another set of eyes on this change.
7 years, 6 months ago (2013-06-18 20:32:59 UTC) #7
kmadhusu
samarth: Addressed comments. Modified InstantExtendedTests. PTAL. Thanks. https://codereview.chromium.org/16035020/diff/87004/chrome/browser/ui/search/search_tab_helper.cc File chrome/browser/ui/search/search_tab_helper.cc (right): https://codereview.chromium.org/16035020/diff/87004/chrome/browser/ui/search/search_tab_helper.cc#newcode119 chrome/browser/ui/search/search_tab_helper.cc:119: On 2013/06/18 ...
7 years, 6 months ago (2013-06-18 20:58:23 UTC) #8
samarth
https://codereview.chromium.org/16035020/diff/142001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/16035020/diff/142001/chrome/browser/ui/search/instant_controller.cc#newcode1254 chrome/browser/ui/search/instant_controller.cc:1254: if (instant_support == INSTANT_SUPPORT_UNKNOWN) I don't think this is ...
7 years, 6 months ago (2013-06-18 22:03:36 UTC) #9
kmadhusu
samarth: PTAL. Thanks. https://codereview.chromium.org/16035020/diff/142001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/16035020/diff/142001/chrome/browser/ui/search/instant_controller.cc#newcode1254 chrome/browser/ui/search/instant_controller.cc:1254: if (instant_support == INSTANT_SUPPORT_UNKNOWN) On 2013/06/18 ...
7 years, 6 months ago (2013-06-18 23:22:56 UTC) #10
samarth
lgtm Looks great! I really like that we actually have a principled way of dealing ...
7 years, 6 months ago (2013-06-19 05:25:02 UTC) #11
kmadhusu
samarth@: Addressed nits. Thanks. https://codereview.chromium.org/16035020/diff/151001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/16035020/diff/151001/chrome/browser/ui/search/instant_controller.cc#newcode1252 chrome/browser/ui/search/instant_controller.cc:1252: const content::WebContents* contents, On 2013/06/19 ...
7 years, 6 months ago (2013-06-19 16:28:14 UTC) #12
Jered
Code lgtm with nits. I did not experiment with the patch at all, and it ...
7 years, 6 months ago (2013-06-19 17:58:16 UTC) #13
kmadhusu
jered@: Addressed nits. Thanks. https://codereview.chromium.org/16035020/diff/161001/chrome/browser/ui/search/instant_extended_interactive_uitest.cc File chrome/browser/ui/search/instant_extended_interactive_uitest.cc (right): https://codereview.chromium.org/16035020/diff/161001/chrome/browser/ui/search/instant_extended_interactive_uitest.cc#newcode2772 chrome/browser/ui/search/instant_extended_interactive_uitest.cc:2772: content::WindowedNotificationObserver observer_1( On 2013/06/19 17:58:17, ...
7 years, 6 months ago (2013-06-19 18:41:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/16035020/180001
7 years, 6 months ago (2013-06-19 18:44:08 UTC) #15
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 6 months ago (2013-06-19 18:52:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/16035020/180001
7 years, 6 months ago (2013-06-19 19:12:45 UTC) #17
commit-bot: I haz the power
7 years, 6 months ago (2013-06-20 14:08:56 UTC) #18
Message was sent while issue was closed.
Change committed as 207428

Powered by Google App Engine
This is Rietveld 408576698