| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 {"cancel", IDS_CANCEL}, | 65 {"cancel", IDS_CANCEL}, |
| 66 {"confirm", IDS_CONFIRM}, | 66 {"confirm", IDS_CONFIRM}, |
| 67 {"disable", IDS_DISABLE}, | 67 {"disable", IDS_DISABLE}, |
| 68 {"learnMore", IDS_LEARN_MORE}, | 68 {"learnMore", IDS_LEARN_MORE}, |
| 69 {"ok", IDS_OK}, | 69 {"ok", IDS_OK}, |
| 70 {"save", IDS_SAVE}, | 70 {"save", IDS_SAVE}, |
| 71 {"advancedPageTitle", IDS_SETTINGS_ADVANCED}, | 71 {"advancedPageTitle", IDS_SETTINGS_ADVANCED}, |
| 72 {"basicPageTitle", IDS_SETTINGS_BASIC}, | 72 {"basicPageTitle", IDS_SETTINGS_BASIC}, |
| 73 {"settings", IDS_SETTINGS_SETTINGS}, | 73 {"settings", IDS_SETTINGS_SETTINGS}, |
| 74 {"restart", IDS_SETTINGS_RESTART}, | 74 {"restart", IDS_SETTINGS_RESTART}, |
| 75 {"menuButtonLabel", IDS_SETTINGS_MENU_BUTTON_LABEL}, |
| 75 }; | 76 }; |
| 76 AddLocalizedStringsBulk(html_source, localized_strings, | 77 AddLocalizedStringsBulk(html_source, localized_strings, |
| 77 arraysize(localized_strings)); | 78 arraysize(localized_strings)); |
| 78 | 79 |
| 79 html_source->AddBoolean( | 80 html_source->AddBoolean( |
| 80 "isGuest", | 81 "isGuest", |
| 81 #if defined(OS_CHROMEOS) | 82 #if defined(OS_CHROMEOS) |
| 82 user_manager::UserManager::Get()->IsLoggedInAsGuest()); | 83 user_manager::UserManager::Get()->IsLoggedInAsGuest()); |
| 83 #else | 84 #else |
| 84 profile->IsOffTheRecord()); | 85 profile->IsOffTheRecord()); |
| (...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1424 #endif | 1425 #endif |
| 1425 AddUsersStrings(html_source); | 1426 AddUsersStrings(html_source); |
| 1426 AddWebContentStrings(html_source); | 1427 AddWebContentStrings(html_source); |
| 1427 | 1428 |
| 1428 policy_indicator::AddLocalizedStrings(html_source); | 1429 policy_indicator::AddLocalizedStrings(html_source); |
| 1429 | 1430 |
| 1430 html_source->SetJsonPath(kLocalizedStringsFile); | 1431 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1431 } | 1432 } |
| 1432 | 1433 |
| 1433 } // namespace settings | 1434 } // namespace settings |
| OLD | NEW |