Chromium Code Reviews| 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)); |
| } |