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

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

Issue 1799913003: Settings People Revamp: Easy Unlock: Add basic UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fixes Created 4 years, 9 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
« no previous file with comments | « chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0a63f0374f9e0a417b65298dc7706d36b5e98cbd..88ee24ec07b3237a2d4a57bb30b54596cadf2b53 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
@@ -25,6 +25,7 @@
#include "ui/base/l10n/l10n_util.h"
#if defined(OS_CHROMEOS)
+#include "ash/system/chromeos/devicetype_utils.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/signin/easy_unlock_service.h"
#include "chrome/browser/ui/webui/chromeos/ui_account_tweaks.h"
@@ -383,16 +384,9 @@ void AddDateTimeStrings(content::WebUIDataSource* html_source) {
void AddEasyUnlockStrings(content::WebUIDataSource* html_source) {
LocalizedString localized_strings[] = {
{"easyUnlockSectionTitle", IDS_SETTINGS_EASY_UNLOCK_SECTION_TITLE},
- {"easyUnlockDescription", IDS_SETTINGS_EASY_UNLOCK_DESCRIPTION},
- {"easyUnlockRequireProximityLabel",
- IDS_SETTINGS_EASY_UNLOCK_REQUIRE_PROXIMITY_LABEL},
{"easyUnlockSetupButton", IDS_SETTINGS_EASY_UNLOCK_SETUP_BUTTON},
- {"easyUnlockSetupIntro", IDS_SETTINGS_EASY_UNLOCK_SETUP_INTRO},
// Easy Unlock turn-off dialog.
{"easyUnlockTurnOffButton", IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_BUTTON},
- {"easyUnlockTurnOffTitle", IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_TITLE},
- {"easyUnlockTurnOffDescription",
- IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_DESCRIPTION},
{"easyUnlockTurnOffOfflineTitle",
IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_OFFLINE_TITLE},
{"easyUnlockTurnOffOfflineMessage",
@@ -406,6 +400,32 @@ void AddEasyUnlockStrings(content::WebUIDataSource* html_source) {
};
AddLocalizedStringsBulk(html_source, localized_strings,
arraysize(localized_strings));
+
+ base::string16 device_name =
+ l10n_util::GetStringUTF16(ash::GetChromeOSDeviceTypeResourceId());
+ html_source->AddString(
+ "easyUnlockSetupIntro",
+ l10n_util::GetStringFUTF16(IDS_SETTINGS_EASY_UNLOCK_SETUP_INTRO,
+ device_name));
+ html_source->AddString(
+ "easyUnlockDescription",
+ l10n_util::GetStringFUTF16(IDS_SETTINGS_EASY_UNLOCK_DESCRIPTION,
+ device_name));
+ html_source->AddString(
+ "easyUnlockTurnOffTitle",
+ l10n_util::GetStringFUTF16(IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_TITLE,
+ device_name));
+ html_source->AddString(
+ "easyUnlockTurnOffDescription",
+ l10n_util::GetStringFUTF16(IDS_SETTINGS_EASY_UNLOCK_TURN_OFF_DESCRIPTION,
+ device_name));
+ html_source->AddString(
+ "easyUnlockRequireProximityLabel",
+ l10n_util::GetStringFUTF16(
+ IDS_SETTINGS_EASY_UNLOCK_REQUIRE_PROXIMITY_LABEL, device_name));
+
+ html_source->AddString("easyUnlockLearnMoreURL",
+ chrome::kEasyUnlockLearnMoreUrl);
}
void AddInternetStrings(content::WebUIDataSource* html_source) {
« no previous file with comments | « chrome/browser/ui/webui/settings/chromeos/easy_unlock_settings_handler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698