| 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..da78bb005d46d98ef173c2ccb6a78cbe1dd95d31 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[] = "ManualResetProfile";
|
| + 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));
|
| }
|
|
|