| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 {"disable", IDS_DISABLE}, | 88 {"disable", IDS_DISABLE}, |
| 89 {"done", IDS_DONE}, | 89 {"done", IDS_DONE}, |
| 90 {"edit", IDS_SETTINGS_EDIT}, | 90 {"edit", IDS_SETTINGS_EDIT}, |
| 91 {"learnMore", IDS_LEARN_MORE}, | 91 {"learnMore", IDS_LEARN_MORE}, |
| 92 {"menuButtonLabel", IDS_SETTINGS_MENU_BUTTON_LABEL}, | 92 {"menuButtonLabel", IDS_SETTINGS_MENU_BUTTON_LABEL}, |
| 93 {"moreActions", IDS_SETTINGS_MORE_ACTIONS}, | 93 {"moreActions", IDS_SETTINGS_MORE_ACTIONS}, |
| 94 {"ok", IDS_OK}, | 94 {"ok", IDS_OK}, |
| 95 {"restart", IDS_SETTINGS_RESTART}, | 95 {"restart", IDS_SETTINGS_RESTART}, |
| 96 {"save", IDS_SAVE}, | 96 {"save", IDS_SAVE}, |
| 97 {"settings", IDS_SETTINGS_SETTINGS}, | 97 {"settings", IDS_SETTINGS_SETTINGS}, |
| 98 {"toggleOn", IDS_SETTINGS_TOGGLE_ON}, |
| 99 {"toggleOff", IDS_SETTINGS_TOGGLE_OFF}, |
| 98 }; | 100 }; |
| 99 AddLocalizedStringsBulk(html_source, localized_strings, | 101 AddLocalizedStringsBulk(html_source, localized_strings, |
| 100 arraysize(localized_strings)); | 102 arraysize(localized_strings)); |
| 101 | 103 |
| 102 html_source->AddBoolean( | 104 html_source->AddBoolean( |
| 103 "isGuest", | 105 "isGuest", |
| 104 #if defined(OS_CHROMEOS) | 106 #if defined(OS_CHROMEOS) |
| 105 user_manager::UserManager::Get()->IsLoggedInAsGuest() || | 107 user_manager::UserManager::Get()->IsLoggedInAsGuest() || |
| 106 user_manager::UserManager::Get()->IsLoggedInAsPublicAccount()); | 108 user_manager::UserManager::Get()->IsLoggedInAsPublicAccount()); |
| 107 #else | 109 #else |
| (...skipping 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2004 | 2006 |
| 2005 #if defined(OS_CHROMEOS) | 2007 #if defined(OS_CHROMEOS) |
| 2006 chromeos::network_element::AddLocalizedStrings(html_source); | 2008 chromeos::network_element::AddLocalizedStrings(html_source); |
| 2007 #endif | 2009 #endif |
| 2008 policy_indicator::AddLocalizedStrings(html_source); | 2010 policy_indicator::AddLocalizedStrings(html_source); |
| 2009 | 2011 |
| 2010 html_source->SetJsonPath(kLocalizedStringsFile); | 2012 html_source->SetJsonPath(kLocalizedStringsFile); |
| 2011 } | 2013 } |
| 2012 | 2014 |
| 2013 } // namespace settings | 2015 } // namespace settings |
| OLD | NEW |