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

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

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

Description

Move instant support to SearchTabHelper. BUG=none TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204709

Patch Set 1 : Rebased codereview.chromium.org/14608004 #

Patch Set 2 : '' #

Total comments: 16

Patch Set 3 : Addressed review comments #

Total comments: 2

Patch Set 4 : Removed instant support code from InstantPage #

Patch Set 5 : Removed instant support code from InstantPage #

Total comments: 15

Patch Set 6 : Addressed review comments #

Total comments: 7

Patch Set 7 : Addressed comments #

Patch Set 8 : Fix android_dbg test failures #

Unified diffs Side-by-side diffs Delta from patch set Stats (+453 lines, -94 lines) Patch
M chrome/browser/ui/search/instant_extended_interactive_uitest.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/browser/ui/search/instant_page.h View 1 2 3 4 5 6 7 7 chunks +16 lines, -18 lines 0 comments Download
M chrome/browser/ui/search/instant_page.cc View 1 2 3 4 5 6 7 10 chunks +55 lines, -43 lines 0 comments Download
M chrome/browser/ui/search/instant_page_unittest.cc View 1 2 3 4 5 6 7 4 chunks +70 lines, -9 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 3 4 5 2 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/ui/search/search_model.h View 1 2 3 4 5 6 7 2 chunks +27 lines, -7 lines 0 comments Download
M chrome/browser/ui/search/search_model.cc View 1 2 3 4 5 2 chunks +35 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/search_model_unittest.cc View 1 2 3 4 5 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 4 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 2 3 4 5 5 chunks +50 lines, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
kmadhusu
sreeram@: I took over samarth@ CL (https://codereview.chromium.org/14608004/) to move instant support to SearchTabHelper. PTAL and ...
7 years, 7 months ago (2013-05-07 23:40:54 UTC) #1
Jered
https://codereview.chromium.org/14911005/diff/3001/chrome/browser/ui/search/instant_page.cc File chrome/browser/ui/search/instant_page.cc (right): https://codereview.chromium.org/14911005/diff/3001/chrome/browser/ui/search/instant_page.cc#newcode1 chrome/browser/ui/search/instant_page.cc:1: // Copyright 2013 The Chromium Authors. All rights reserved. ...
7 years, 7 months ago (2013-05-08 00:16:27 UTC) #2
samarth
https://codereview.chromium.org/14911005/diff/3001/chrome/browser/ui/search/instant_controller.cc File chrome/browser/ui/search/instant_controller.cc (right): https://codereview.chromium.org/14911005/diff/3001/chrome/browser/ui/search/instant_controller.cc#newcode974 chrome/browser/ui/search/instant_controller.cc:974: // Now that the overlay is hidden, try |instant_tab_| ...
7 years, 7 months ago (2013-05-08 02:38:48 UTC) #3
kmadhusu
Addressed review comments. PTAL. I will get rid of the message handler and the associated ...
7 years, 7 months ago (2013-05-09 02:40:40 UTC) #4
Jered
https://codereview.chromium.org/14911005/diff/24001/chrome/browser/ui/search/instant_page_unittest.cc File chrome/browser/ui/search/instant_page_unittest.cc (right): https://codereview.chromium.org/14911005/diff/24001/chrome/browser/ui/search/instant_page_unittest.cc#newcode102 chrome/browser/ui/search/instant_page_unittest.cc:102: EXPECT_FALSE(page->supports_instant()); Is this change intentional? This is testing the ...
7 years, 7 months ago (2013-05-09 16:32:43 UTC) #5
kmadhusu
https://codereview.chromium.org/14911005/diff/24001/chrome/browser/ui/search/instant_page_unittest.cc File chrome/browser/ui/search/instant_page_unittest.cc (right): https://codereview.chromium.org/14911005/diff/24001/chrome/browser/ui/search/instant_page_unittest.cc#newcode102 chrome/browser/ui/search/instant_page_unittest.cc:102: EXPECT_FALSE(page->supports_instant()); On 2013/05/09 16:32:43, Jered wrote: > Is this ...
7 years, 7 months ago (2013-05-09 16:37:33 UTC) #6
kmadhusu
CL is ready for review. PTAL. Thanks.
7 years, 7 months ago (2013-05-09 20:24:09 UTC) #7
samarth
https://codereview.chromium.org/14911005/diff/34002/chrome/browser/ui/search/instant_page.cc File chrome/browser/ui/search/instant_page.cc (right): https://codereview.chromium.org/14911005/diff/34002/chrome/browser/ui/search/instant_page.cc#newcode25 chrome/browser/ui/search/instant_page.cc:25: if (extended_enabled_ && contents()) No reason to both checking ...
7 years, 7 months ago (2013-05-10 01:32:38 UTC) #8
samarth
https://codereview.chromium.org/14911005/diff/34002/chrome/browser/ui/search/instant_page.cc File chrome/browser/ui/search/instant_page.cc (right): https://codereview.chromium.org/14911005/diff/34002/chrome/browser/ui/search/instant_page.cc#newcode245 chrome/browser/ui/search/instant_page.cc:245: supports_instant_ = supports_instant; On 2013/05/10 01:32:38, samarth wrote: > ...
7 years, 7 months ago (2013-05-10 14:45:56 UTC) #9
kmadhusu
Addressed review comments. PTAL. Thanks. https://codereview.chromium.org/14911005/diff/34002/chrome/browser/ui/search/instant_page.cc File chrome/browser/ui/search/instant_page.cc (right): https://codereview.chromium.org/14911005/diff/34002/chrome/browser/ui/search/instant_page.cc#newcode25 chrome/browser/ui/search/instant_page.cc:25: if (extended_enabled_ && contents()) ...
7 years, 7 months ago (2013-05-13 17:13:24 UTC) #10
samarth
This looks good! But don't you need to update InstantTestBase::FocusOmniboxAndWaitForInstantOverlaySupport and InstantTestBase::FocusOmniboxAndWaitForInstantOverlayAndNTPSupport? Also, looks like ...
7 years, 7 months ago (2013-05-13 20:19:03 UTC) #11
kmadhusu
Samarth: Thanks for your comments. Can you explain why I should update InstantTestBase::FocusOmniboxAndWaitForInstantOverlaySupport and InstantTestBase::FocusOmniboxAndWaitForInstantOverlayAndNTPSupport? ...
7 years, 7 months ago (2013-05-14 00:01:27 UTC) #12
sreeram
https://codereview.chromium.org/14911005/diff/63001/chrome/browser/ui/search/search_tab_helper.cc File chrome/browser/ui/search/search_tab_helper.cc (right): https://codereview.chromium.org/14911005/diff/63001/chrome/browser/ui/search/search_tab_helper.cc#newcode158 chrome/browser/ui/search/search_tab_helper.cc:158: if (!chrome::ShouldAssignURLToInstantRenderer(web_contents_->GetURL(), On 2013/05/14 00:01:27, kmadhusu wrote: > On ...
7 years, 7 months ago (2013-05-14 01:49:17 UTC) #13
kmadhusu
Samarth: You are right. UsesOverlayIfTabNotReady is failing consistently on mac and win. Failure is caused ...
7 years, 7 months ago (2013-05-14 20:45:19 UTC) #14
samarth
lgtm modulo the issue with the failing test. Thanks! Samarth https://codereview.chromium.org/14911005/diff/63001/chrome/browser/ui/search/search_tab_helper.cc File chrome/browser/ui/search/search_tab_helper.cc (right): https://codereview.chromium.org/14911005/diff/63001/chrome/browser/ui/search/search_tab_helper.cc#newcode158 ...
7 years, 7 months ago (2013-05-15 17:43:21 UTC) #15
kmadhusu
samarth@: Fixed the failing test (Thanks to Sreeram). sreeram@: Please review the latest patch. Thanks.
7 years, 7 months ago (2013-05-24 19:00:20 UTC) #16
kmadhusu
On 2013/05/24 19:00:20, kmadhusu wrote: > samarth@: Fixed the failing test (Thanks to Sreeram). > ...
7 years, 6 months ago (2013-05-29 20:58:29 UTC) #17
sreeram
LGTM I didn't look at the tests. I assume they are correct :) I am ...
7 years, 6 months ago (2013-06-03 18:16:28 UTC) #18
kmadhusu
sreeram@: Addressed comments. Filed a bug (crbug.com/246323) to track the clean up task. Thanks. https://codereview.chromium.org/14911005/diff/103001/chrome/browser/ui/search/instant_page.cc ...
7 years, 6 months ago (2013-06-03 20:10:53 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/14911005/115001
7 years, 6 months ago (2013-06-03 20:25:19 UTC) #20
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 6 months ago (2013-06-04 11:42:12 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/14911005/130001
7 years, 6 months ago (2013-06-04 16:30:11 UTC) #22
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-04 16:58:03 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/14911005/130007
7 years, 6 months ago (2013-06-04 18:55:32 UTC) #24
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 6 months ago (2013-06-05 11:24:18 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/14911005/150001
7 years, 6 months ago (2013-06-05 16:19:57 UTC) #26
kmadhusu
samarth@: As we discussed, I have updated chrome_tests_unit.gypi to exclude InstantPage unittest and SearchModel unittest ...
7 years, 6 months ago (2013-06-07 00:29:25 UTC) #27
samarth
SLGTM
7 years, 6 months ago (2013-06-07 00:57:34 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kmadhusu@chromium.org/14911005/151013
7 years, 6 months ago (2013-06-07 00:58:53 UTC) #29
commit-bot: I haz the power
7 years, 6 months ago (2013-06-07 04:55:04 UTC) #30
Message was sent while issue was closed.
Change committed as 204709

Powered by Google App Engine
This is Rietveld 408576698