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

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

Issue 2964293002: CrOS Settings: Add skeleton page for multidevice section. (Closed)
Patch Set: Updating sms connect section with summary text Created 3 years, 5 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 a4c40064daf1ade7296d1a4b97d2ae240dcd605f..690dc3ea15cc862bf5f7d8f5179ccf40d542346c 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
@@ -2027,6 +2027,21 @@ void AddWebContentStrings(content::WebUIDataSource* html_source) {
arraysize(localized_strings));
}
+#if defined(OS_CHROMEOS)
+void AddMultideviceStrings(content::WebUIDataSource* html_source) {
+ LocalizedString localized_strings[] = {
Lei Zhang 2017/07/13 20:56:58 Can this be const? (And all the others in this fil
Oren Blasberg 2017/07/13 23:07:05 Adding const does not work.. ../../chrome/browser
+ {"multidevicePageTitle", IDS_SETTINGS_MULTIDEVICE},
+ {"smsConnect", IDS_SETTINGS_MULTIDEVICE_SMS_CONNECT},
+ {"smsConnectSummary", IDS_SETTINGS_MULTIDEVICE_SMS_CONNECT_SUMMARY},
+ };
+ AddLocalizedStringsBulk(html_source, localized_strings,
+ arraysize(localized_strings));
+
+ html_source->AddBoolean("enableMultideviceSettings",
+ base::FeatureList::IsEnabled(features::kMultidevice));
+}
+#endif
+
#if defined(OS_CHROMEOS)
void AddOncStrings(content::WebUIDataSource* html_source) {
LocalizedString onc_property_strings[] = {
@@ -2167,6 +2182,7 @@ void AddLocalizedStrings(content::WebUIDataSource* html_source,
AddDeviceStrings(html_source);
AddEasyUnlockStrings(html_source);
AddInternetStrings(html_source);
+ AddMultideviceStrings(html_source);
AddOncStrings(html_source);
AddUsersStrings(html_source);
#else

Powered by Google App Engine
This is Rietveld 408576698