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/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 AddLocalizedStringsBulk(html_source, localized_strings, | 397 AddLocalizedStringsBulk(html_source, localized_strings, |
398 arraysize(localized_strings)); | 398 arraysize(localized_strings)); |
399 } | 399 } |
400 | 400 |
401 void AddResetStrings(content::WebUIDataSource* html_source) { | 401 void AddResetStrings(content::WebUIDataSource* html_source) { |
402 LocalizedString localized_strings[] = { | 402 LocalizedString localized_strings[] = { |
403 {"resetPageTitle", IDS_SETTINGS_RESET}, | 403 {"resetPageTitle", IDS_SETTINGS_RESET}, |
404 {"resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION}, | 404 {"resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION}, |
405 {"resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION}, | 405 {"resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION}, |
406 {"resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON}, | 406 {"resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON}, |
407 {"resetPageFeedback", IDS_RESET_PROFILE_SETTINGS_FEEDBACK}, | 407 {"resetPageFeedback", IDS_SETTINGS_RESET_PROFILE_FEEDBACK}, |
| 408 {"viewReportedSettings", IDS_SETTINGS_RESET_VIEW_REPORTED_SETTINGS}, |
408 #if defined(OS_CHROMEOS) | 409 #if defined(OS_CHROMEOS) |
409 {"powerwashTitle", IDS_OPTIONS_FACTORY_RESET}, | 410 {"powerwashTitle", IDS_OPTIONS_FACTORY_RESET}, |
410 {"powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING}, | 411 {"powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING}, |
411 {"powerwashDialogExplanation", IDS_OPTIONS_FACTORY_RESET_WARNING}, | 412 {"powerwashDialogExplanation", IDS_OPTIONS_FACTORY_RESET_WARNING}, |
412 {"powerwashDialogButton", IDS_SETTINGS_RESTART}, | 413 {"powerwashDialogButton", IDS_SETTINGS_RESTART}, |
413 {"powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL}, | 414 {"powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL}, |
414 #endif | 415 #endif |
415 // Automatic reset banner. | 416 // Automatic reset banner. |
416 {"resetProfileBannerButton", | 417 {"resetProfileBannerButton", |
417 IDS_AUTOMATIC_SETTINGS_RESET_BANNER_RESET_BUTTON_TEXT}, | 418 IDS_AUTOMATIC_SETTINGS_RESET_BANNER_RESET_BUTTON_TEXT}, |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 #endif | 957 #endif |
957 AddUsersStrings(html_source); | 958 AddUsersStrings(html_source); |
958 AddWebContentStrings(html_source); | 959 AddWebContentStrings(html_source); |
959 | 960 |
960 policy_indicator::AddLocalizedStrings(html_source); | 961 policy_indicator::AddLocalizedStrings(html_source); |
961 | 962 |
962 html_source->SetJsonPath(kLocalizedStringsFile); | 963 html_source->SetJsonPath(kLocalizedStringsFile); |
963 } | 964 } |
964 | 965 |
965 } // namespace settings | 966 } // namespace settings |
OLD | NEW |