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

Unified Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2853113004: chromeos: Add settings to control power management prefs. (Closed)
Patch Set: address review comments and display more lid-closed actions Created 3 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/settings/md_settings_localized_strings_provider.cc
diff --git a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
index d9eddff96efbbc167d1f50c7cef79dcd2e61a5b4..96a7637ad6dbd3abb7dc201e4e5595e9e92fb20e 100644
--- a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
@@ -711,7 +711,19 @@ void AddDeviceStrings(content::WebUIDataSource* html_source) {
{"powerSourceAcAdapter", IDS_SETTINGS_POWER_SOURCE_AC_ADAPTER},
{"powerSourceLowPowerCharger",
IDS_SETTINGS_POWER_SOURCE_LOW_POWER_CHARGER},
- {"calculatingPower", IDS_SETTINGS_POWER_SOURCE_CALCULATING}};
+ {"calculatingPower", IDS_SETTINGS_POWER_SOURCE_CALCULATING},
+ {"powerIdleLabel", IDS_SETTINGS_POWER_IDLE_LABEL},
+ {"powerIdleDisplayOffSleep", IDS_SETTINGS_POWER_IDLE_DISPLAY_OFF_SLEEP},
+ {"powerIdleDisplayOffStayAwake",
+ IDS_SETTINGS_POWER_IDLE_DISPLAY_OFF_STAY_AWAKE},
+ {"powerIdleDisplayOn", IDS_SETTINGS_POWER_IDLE_DISPLAY_ON},
+ {"powerIdleOther", IDS_SETTINGS_POWER_IDLE_OTHER},
+ {"powerLidClosedLabel", IDS_SETTINGS_POWER_LID_CLOSED_LABEL},
+ {"powerLidClosedSleep", IDS_SETTINGS_POWER_LID_CLOSED_SLEEP},
+ {"powerLidClosedStayAwake", IDS_SETTINGS_POWER_LID_CLOSED_STAY_AWAKE},
+ {"powerLidClosedSignOut", IDS_SETTINGS_POWER_LID_CLOSED_SIGN_OUT},
+ {"powerLidClosedShutDown", IDS_SETTINGS_POWER_LID_CLOSED_SHUT_DOWN},
+ };
AddLocalizedStringsBulk(html_source, power_strings, arraysize(power_strings));
html_source->AddString("naturalScrollLearnMoreLink",

Powered by Google App Engine
This is Rietveld 408576698