| 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 "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h" | 10 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h" |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 html_source->AddLocalizedString( | 265 html_source->AddLocalizedString( |
| 266 "powerwashTitle", IDS_OPTIONS_FACTORY_RESET); | 266 "powerwashTitle", IDS_OPTIONS_FACTORY_RESET); |
| 267 html_source->AddString( | 267 html_source->AddString( |
| 268 "powerwashDescription", | 268 "powerwashDescription", |
| 269 l10n_util::GetStringFUTF16( | 269 l10n_util::GetStringFUTF16( |
| 270 IDS_OPTIONS_FACTORY_RESET_DESCRIPTION, | 270 IDS_OPTIONS_FACTORY_RESET_DESCRIPTION, |
| 271 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); | 271 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); |
| 272 html_source->AddLocalizedString( | 272 html_source->AddLocalizedString( |
| 273 "powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING); | 273 "powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING); |
| 274 html_source->AddLocalizedString( | 274 html_source->AddLocalizedString( |
| 275 "powerwashDialogBody", IDS_OPTIONS_FACTORY_RESET_WARNING); | 275 "powerwashDialogExplanation", IDS_OPTIONS_FACTORY_RESET_WARNING); |
| 276 html_source->AddLocalizedString( | 276 html_source->AddLocalizedString( |
| 277 "powerwashDialogButton", IDS_RELAUNCH_BUTTON); | 277 "powerwashDialogButton", IDS_RELAUNCH_BUTTON); |
| 278 html_source->AddLocalizedString( | 278 html_source->AddLocalizedString( |
| 279 "powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL); | 279 "powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL); |
| 280 #endif | 280 #endif |
| 281 } | 281 } |
| 282 | 282 |
| 283 void AddDateTimeStrings(content::WebUIDataSource* html_source) { | 283 void AddDateTimeStrings(content::WebUIDataSource* html_source) { |
| 284 html_source->AddLocalizedString( | 284 html_source->AddLocalizedString( |
| 285 "dateTimePageTitle", IDS_SETTINGS_DATE_TIME); | 285 "dateTimePageTitle", IDS_SETTINGS_DATE_TIME); |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 AddSyncStrings(html_source); | 761 AddSyncStrings(html_source); |
| 762 AddUsersStrings(html_source); | 762 AddUsersStrings(html_source); |
| 763 AddWebContentStrings(html_source); | 763 AddWebContentStrings(html_source); |
| 764 | 764 |
| 765 policy_indicator::AddLocalizedStrings(html_source); | 765 policy_indicator::AddLocalizedStrings(html_source); |
| 766 | 766 |
| 767 html_source->SetJsonPath(kLocalizedStringsFile); | 767 html_source->SetJsonPath(kLocalizedStringsFile); |
| 768 } | 768 } |
| 769 | 769 |
| 770 } // namespace settings | 770 } // namespace settings |
| OLD | NEW |