Index: chrome/browser/instant/instant_controller.cc |
=================================================================== |
--- chrome/browser/instant/instant_controller.cc (revision 62881) |
+++ chrome/browser/instant/instant_controller.cc (working copy) |
@@ -28,7 +28,8 @@ |
} |
// static |
-bool InstantController::IsEnabled(Profile* profile) { |
+bool InstantController::IsEnabled() { |
+ // TODO: convert to kInstantEnabled once pref lands. |
static bool enabled = false; |
static bool checked = false; |
if (!checked) { |
@@ -36,8 +37,7 @@ |
enabled = CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableMatchPreview); |
} |
- PrefService* prefs = profile->GetPrefs(); |
- return (enabled || (prefs && prefs->GetBoolean(prefs::kInstantEnabled))); |
+ return enabled; |
} |
InstantController::InstantController(InstantDelegate* delegate) |