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

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

Issue 2009543002: Add storage manager overlay on Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/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 c665f6f309df47ae9dd086717d740b3989342662..5c98df51206be3e2b656fb6fae2df5019a7ec778 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -491,6 +491,8 @@ void BrowserOptionsHandler::GetLocalizedValues(base::DictionaryValue* values) {
IDS_OPTIONS_RESOLVE_TIMEZONE_BY_GEOLOCATION_DESCRIPTION },
{ "sectionTitleDevice", IDS_OPTIONS_DEVICE_GROUP_NAME },
{ "sectionTitleInternet", IDS_OPTIONS_INTERNET_OPTIONS_GROUP_LABEL },
+ { "storageManagerButtonTitle",
+ IDS_OPTIONS_DEVICE_GROUP_STORAGE_MANAGER_BUTTON_TITLE },
{ "syncButtonTextStart", IDS_SYNC_SETUP_BUTTON_LABEL },
{ "thirdPartyImeConfirmDisable", IDS_CANCEL },
{ "thirdPartyImeConfirmEnable", IDS_OK },
@@ -731,6 +733,12 @@ void BrowserOptionsHandler::GetLocalizedValues(base::DictionaryValue* values) {
bool allow_bluetooth = true;
cros_settings->GetBoolean(chromeos::kAllowBluetooth, &allow_bluetooth);
values->SetBoolean("allowBluetooth", allow_bluetooth);
+
+ const bool have_enable_storage_manager_switch =
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ chromeos::switches::kEnableStorageManager);
+ values->SetBoolean("enableStorageManager",
Dan Beam 2016/05/26 00:10:37 nit: values->SetBoolean("enableStorageManager",
fukino 2016/05/26 04:54:54 Done.
+ have_enable_storage_manager_switch);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698