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

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: Addressed nits 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 c861a1c963ed4ba3eedc309720e62e8b417164da..fe1cc1bd45c2eada466250960fd566e6f61aa770 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -1253,6 +1253,17 @@ void InstantController::InstantPageRenderViewCreated(
UpdateMostVisitedItems();
}
+void InstantController::InstantSupportChanged(
+ 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) {
« no previous file with comments | « chrome/browser/ui/search/instant_controller.h ('k') | chrome/browser/ui/search/instant_extended_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698