| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide
r.h" | 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide
r.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/i18n/number_formatting.h" | 10 #include "base/i18n/number_formatting.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 {"restart", IDS_SETTINGS_RESTART}, | 83 {"restart", IDS_SETTINGS_RESTART}, |
| 84 {"save", IDS_SAVE}, | 84 {"save", IDS_SAVE}, |
| 85 {"settings", IDS_SETTINGS_SETTINGS}, | 85 {"settings", IDS_SETTINGS_SETTINGS}, |
| 86 }; | 86 }; |
| 87 AddLocalizedStringsBulk(html_source, localized_strings, | 87 AddLocalizedStringsBulk(html_source, localized_strings, |
| 88 arraysize(localized_strings)); | 88 arraysize(localized_strings)); |
| 89 | 89 |
| 90 html_source->AddBoolean( | 90 html_source->AddBoolean( |
| 91 "isGuest", | 91 "isGuest", |
| 92 #if defined(OS_CHROMEOS) | 92 #if defined(OS_CHROMEOS) |
| 93 user_manager::UserManager::Get()->IsLoggedInAsGuest()); | 93 user_manager::UserManager::Get()->IsLoggedInAsGuest() || |
| 94 user_manager::UserManager::Get()->IsLoggedInAsPublicAccount()); |
| 94 #else | 95 #else |
| 95 profile->IsOffTheRecord()); | 96 profile->IsOffTheRecord()); |
| 96 #endif | 97 #endif |
| 97 } | 98 } |
| 98 | 99 |
| 99 void AddA11yStrings(content::WebUIDataSource* html_source) { | 100 void AddA11yStrings(content::WebUIDataSource* html_source) { |
| 100 LocalizedString localized_strings[] = { | 101 LocalizedString localized_strings[] = { |
| 101 {"a11yPageTitle", IDS_SETTINGS_ACCESSIBILITY}, | 102 {"a11yPageTitle", IDS_SETTINGS_ACCESSIBILITY}, |
| 102 {"a11yWebStore", IDS_SETTINGS_ACCESSIBILITY_WEB_STORE}, | 103 {"a11yWebStore", IDS_SETTINGS_ACCESSIBILITY_WEB_STORE}, |
| 103 {"moreFeaturesLink", IDS_SETTINGS_MORE_FEATURES_LINK}, | 104 {"moreFeaturesLink", IDS_SETTINGS_MORE_FEATURES_LINK}, |
| (...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1874 #if defined(USE_NSS_CERTS) | 1875 #if defined(USE_NSS_CERTS) |
| 1875 AddCertificateManagerStrings(html_source); | 1876 AddCertificateManagerStrings(html_source); |
| 1876 #endif | 1877 #endif |
| 1877 | 1878 |
| 1878 policy_indicator::AddLocalizedStrings(html_source); | 1879 policy_indicator::AddLocalizedStrings(html_source); |
| 1879 | 1880 |
| 1880 html_source->SetJsonPath(kLocalizedStringsFile); | 1881 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1881 } | 1882 } |
| 1882 | 1883 |
| 1883 } // namespace settings | 1884 } // namespace settings |
| OLD | NEW |