| 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 AddLocalizedStringsBulk(html_source, localized_strings, | 462 AddLocalizedStringsBulk(html_source, localized_strings, |
| 463 arraysize(localized_strings)); | 463 arraysize(localized_strings)); |
| 464 } | 464 } |
| 465 | 465 |
| 466 #if !defined(OS_CHROMEOS) | 466 #if !defined(OS_CHROMEOS) |
| 467 void AddDefaultBrowserStrings(content::WebUIDataSource* html_source) { | 467 void AddDefaultBrowserStrings(content::WebUIDataSource* html_source) { |
| 468 LocalizedString localized_strings[] = { | 468 LocalizedString localized_strings[] = { |
| 469 {"defaultBrowser", IDS_SETTINGS_DEFAULT_BROWSER}, | 469 {"defaultBrowser", IDS_SETTINGS_DEFAULT_BROWSER}, |
| 470 {"defaultBrowserDefault", IDS_SETTINGS_DEFAULT_BROWSER_DEFAULT}, | 470 {"defaultBrowserDefault", IDS_SETTINGS_DEFAULT_BROWSER_DEFAULT}, |
| 471 {"defaultBrowserMakeDefault", IDS_SETTINGS_DEFAULT_BROWSER_MAKE_DEFAULT}, | 471 {"defaultBrowserMakeDefault", IDS_SETTINGS_DEFAULT_BROWSER_MAKE_DEFAULT}, |
| 472 {"defaultBrowserMakeDefaultButton", |
| 473 IDS_SETTINGS_DEFAULT_BROWSER_MAKE_DEFAULT_BUTTON}, |
| 472 {"defaultBrowserError", IDS_SETTINGS_DEFAULT_BROWSER_ERROR}, | 474 {"defaultBrowserError", IDS_SETTINGS_DEFAULT_BROWSER_ERROR}, |
| 473 {"defaultBrowserSecondary", IDS_SETTINGS_DEFAULT_BROWSER_SECONDARY}, | 475 {"defaultBrowserSecondary", IDS_SETTINGS_DEFAULT_BROWSER_SECONDARY}, |
| 474 }; | 476 }; |
| 475 AddLocalizedStringsBulk(html_source, localized_strings, | 477 AddLocalizedStringsBulk(html_source, localized_strings, |
| 476 arraysize(localized_strings)); | 478 arraysize(localized_strings)); |
| 477 } | 479 } |
| 478 #endif | 480 #endif |
| 479 | 481 |
| 480 #if defined(OS_CHROMEOS) | 482 #if defined(OS_CHROMEOS) |
| 481 void AddDeviceStrings(content::WebUIDataSource* html_source) { | 483 void AddDeviceStrings(content::WebUIDataSource* html_source) { |
| (...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1647 #endif | 1649 #endif |
| 1648 AddUsersStrings(html_source); | 1650 AddUsersStrings(html_source); |
| 1649 AddWebContentStrings(html_source); | 1651 AddWebContentStrings(html_source); |
| 1650 | 1652 |
| 1651 policy_indicator::AddLocalizedStrings(html_source); | 1653 policy_indicator::AddLocalizedStrings(html_source); |
| 1652 | 1654 |
| 1653 html_source->SetJsonPath(kLocalizedStringsFile); | 1655 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1654 } | 1656 } |
| 1655 | 1657 |
| 1656 } // namespace settings | 1658 } // namespace settings |
| OLD | NEW |