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

Unified Diff: chrome/browser/ui/browser_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/browser_instant_controller.cc
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc
index cacd42f622a36ad8629604cc05ffa81f678f4262..7a6e57d7928724f7e60726f603d185531caf91ab 100644
--- a/chrome/browser/ui/browser_instant_controller.cc
+++ b/chrome/browser/ui/browser_instant_controller.cc
@@ -267,7 +267,8 @@ void BrowserInstantController::ResetInstant(const std::string& pref_name) {
void BrowserInstantController::ModelChanged(
const SearchModel::State& old_state,
const SearchModel::State& new_state) {
- if (old_state.mode == new_state.mode)
+ if (old_state.mode == new_state.mode &&
+ old_state.instant_support == new_state.instant_support)
samarth 2013/06/14 00:17:10 This is not strictly correct. The code below assu
kmadhusu 2013/06/17 16:49:19 Good catch. Fixed.
return;
const SearchMode& new_mode = new_state.mode;

Powered by Google App Engine
This is Rietveld 408576698