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

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: Address review comments 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..4ab95837215290a8f12252c3d60229b4274e0604 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,10 @@ void BrowserOptionsHandler::GetLocalizedValues(base::DictionaryValue* values) {
bool allow_bluetooth = true;
cros_settings->GetBoolean(chromeos::kAllowBluetooth, &allow_bluetooth);
values->SetBoolean("allowBluetooth", allow_bluetooth);
+
+ values->SetBoolean("enableStorageManager",
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ chromeos::switches::kEnableStorageManager));
#endif
}
« no previous file with comments | « chrome/browser/resources/options/options_bundle.js ('k') | chrome/browser/ui/webui/options/chromeos/storage_manager_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698