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 |