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

Unified Diff: chrome/browser/ui/search/instant_controller.cc

Issue 16035020: Move instant support to SearchTabHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/search/instant_controller.cc
diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc
index d01af5d992390385c60bd3bfa0da63f82dd122ff..12fadfc4a0a89894d4a5b92136f2ca44cdd8157a 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -1248,6 +1248,18 @@ void InstantController::InstantPageRenderViewCreated(
UpdateMostVisitedItems();
}
+void InstantController::InstantSupportChanged(
+ const content::WebContents* contents,
samarth 2013/06/19 05:25:02 This parameter is no longer necessary.
kmadhusu 2013/06/19 16:28:15 Fixed.
+ InstantSupportState instant_support) {
+ // Handle INSTANT_SUPPORT_YES here because InstantPage is not hooked up to the
+ // active tab. Search model changed listener in InstantPage will handle other
+ // cases.
+ if (instant_support != INSTANT_SUPPORT_YES)
+ return;
+
+ ResetInstantTab();
+}
+
void InstantController::InstantSupportDetermined(
const content::WebContents* contents,
bool supports_instant) {

Powered by Google App Engine
This is Rietveld 408576698