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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 20686002: Profile Reset: enable feature by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable -> enable Created 7 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/browser_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index 94deb7ce4723982d5638cc9e721e5966751d06a1..6b32cca77b29ef38241bd0c562c18f68ded3027c 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -12,6 +12,7 @@
#include "base/bind_helpers.h"
#include "base/command_line.h"
#include "base/memory/singleton.h"
+#include "base/metrics/field_trial.h"
#include "base/metrics/histogram.h"
#include "base/path_service.h"
#include "base/prefs/pref_service.h"
@@ -125,6 +126,10 @@ namespace options {
namespace {
+// Constants for the new tab button field trial.
+ const char kProfileResetTrialName[] = "manual_reset_profile";
battre 2013/07/30 17:04:41 This should be CamelCase.
vasilii 2013/07/30 17:09:07 Done.
+ const char kProfileResetTrialEnableGroupName[] = "Enable";
+
bool ShouldShowMultiProfilesUserList(chrome::HostDesktopType desktop_type) {
#if defined(OS_CHROMEOS)
// On Chrome OS we use different UI for multi-profiles.
@@ -528,7 +533,11 @@ void BrowserOptionsHandler::GetLocalizedValues(DictionaryValue* values) {
g_browser_process->gpu_mode_manager()->initial_gpu_mode_pref());
#endif
+ bool finch_allows_button =
+ base::FieldTrialList::FindFullName(kProfileResetTrialName) ==
+ kProfileResetTrialEnableGroupName;
values->SetBoolean("enableResetProfileSettingsSection",
+ finch_allows_button ||
CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableResetProfileSettings));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698