| 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 374fb389b5f427f41bde415e613c6622938f6f6e..6e395c1f4356601c2006d09f82a3a2de0a36ebe0 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
|
| @@ -63,7 +63,7 @@ void AddLocalizedStringsBulk(content::WebUIDataSource* html_source,
|
| }
|
| }
|
|
|
| -void AddCommonStrings(content::WebUIDataSource* html_source) {
|
| +void AddCommonStrings(content::WebUIDataSource* html_source, Profile* profile) {
|
| LocalizedString localized_strings[] = {
|
| {"add", IDS_ADD},
|
| {"cancel", IDS_CANCEL},
|
| @@ -82,6 +82,14 @@ void AddCommonStrings(content::WebUIDataSource* html_source) {
|
| };
|
| AddLocalizedStringsBulk(html_source, localized_strings,
|
| arraysize(localized_strings));
|
| +
|
| + html_source->AddBoolean(
|
| + "isGuest",
|
| +#if defined(OS_CHROMEOS)
|
| + user_manager::UserManager::Get()->IsLoggedInAsGuest());
|
| +#else
|
| + profile->IsOffTheRecord());
|
| +#endif
|
| }
|
|
|
| void AddA11yStrings(content::WebUIDataSource* html_source) {
|
| @@ -1232,7 +1240,7 @@ void AddWebContentStrings(content::WebUIDataSource* html_source) {
|
|
|
| void AddLocalizedStrings(content::WebUIDataSource* html_source,
|
| Profile* profile) {
|
| - AddCommonStrings(html_source);
|
| + AddCommonStrings(html_source, profile);
|
|
|
| AddA11yStrings(html_source);
|
| AddAboutStrings(html_source);
|
|
|