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

Unified Diff: chrome/browser/instant/instant_controller.h

Issue 10879043: Centralize logic around Instant modes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Directly call into SearchProvider Created 8 years, 4 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/instant/instant_controller.h
diff --git a/chrome/browser/instant/instant_controller.h b/chrome/browser/instant/instant_controller.h
index 47bcf093ba20b1820ef69108907b6f0d6a4e9f28..abf843a010625457b7419733d3d42f8f303e3f71 100644
--- a/chrome/browser/instant/instant_controller.h
+++ b/chrome/browser/instant/instant_controller.h
@@ -135,6 +135,11 @@ class InstantController : public InstantLoaderDelegate {
return last_transition_type_;
}
+ // Returns true if Instant will offer up autocomplete suggestions.
+ bool IsSuggestEnabled() const {
+ return mode_ == INSTANT || mode_ == SUGGEST;
+ }
+
// InstantLoaderDelegate:
virtual void SetSuggestions(
InstantLoader* loader,

Powered by Google App Engine
This is Rietveld 408576698