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

Unified Diff: chrome/browser/ui/webui/options2/browser_options_handler2.cc

Issue 10353017: Unlaunch the HIDDEN mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/webui/options2/browser_options_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/browser_options_handler2.cc b/chrome/browser/ui/webui/options2/browser_options_handler2.cc
index 8c7ba968c65cef72534fd821e91aab843847fb4d..2594805893f5b8985d68e8390aeba0b4a44d7a06 100644
--- a/chrome/browser/ui/webui/options2/browser_options_handler2.cc
+++ b/chrome/browser/ui/webui/options2/browser_options_handler2.cc
@@ -901,8 +901,8 @@ void BrowserOptionsHandler::ToggleAutoLaunch(const ListValue* args) {
void BrowserOptionsHandler::GetInstantFieldTrialStatus(const ListValue* args) {
Profile* profile = Profile::FromWebUI(web_ui());
base::FundamentalValue enabled(
- InstantFieldTrial::IsInstantExperiment(profile) &&
- !InstantFieldTrial::IsHiddenExperiment(profile));
+ !profile->GetPrefs()->GetBoolean(prefs::kInstantEnabled) &&
+ InstantFieldTrial::GetMode(profile) == InstantFieldTrial::INSTANT);
web_ui()->CallJavascriptFunction("BrowserOptions.setInstantFieldTrialStatus",
enabled);
}

Powered by Google App Engine
This is Rietveld 408576698