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/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 | 285 |
286 void AddDownloadsStrings(content::WebUIDataSource* html_source) { | 286 void AddDownloadsStrings(content::WebUIDataSource* html_source) { |
287 html_source->AddLocalizedString( | 287 html_source->AddLocalizedString( |
288 "downloadsPageTitle", IDS_SETTINGS_DOWNLOADS); | 288 "downloadsPageTitle", IDS_SETTINGS_DOWNLOADS); |
289 html_source->AddLocalizedString( | 289 html_source->AddLocalizedString( |
290 "downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION); | 290 "downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION); |
291 html_source->AddLocalizedString( | 291 html_source->AddLocalizedString( |
292 "changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION); | 292 "changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION); |
293 html_source->AddLocalizedString( | 293 html_source->AddLocalizedString( |
294 "promptForDownload", IDS_SETTINGS_PROMPT_FOR_DOWNLOAD); | 294 "promptForDownload", IDS_SETTINGS_PROMPT_FOR_DOWNLOAD); |
| 295 html_source->AddLocalizedString( |
| 296 "disconnectGoogleDriveAccount", IDS_SETTINGS_DISCONNECT_GOOGLE_DRIVE); |
295 } | 297 } |
296 | 298 |
297 void AddResetStrings(content::WebUIDataSource* html_source) { | 299 void AddResetStrings(content::WebUIDataSource* html_source) { |
298 html_source->AddLocalizedString( | 300 html_source->AddLocalizedString( |
299 "resetPageTitle", IDS_RESET_PROFILE_SETTINGS_SECTION_TITLE); | 301 "resetPageTitle", IDS_RESET_PROFILE_SETTINGS_SECTION_TITLE); |
300 html_source->AddLocalizedString( | 302 html_source->AddLocalizedString( |
301 "resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION); | 303 "resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION); |
302 html_source->AddLocalizedString( | 304 html_source->AddLocalizedString( |
303 "resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION); | 305 "resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION); |
304 html_source->AddLocalizedString( | 306 html_source->AddLocalizedString( |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 AddSiteSettingsStrings(html_source); | 897 AddSiteSettingsStrings(html_source); |
896 AddUsersStrings(html_source); | 898 AddUsersStrings(html_source); |
897 AddWebContentStrings(html_source); | 899 AddWebContentStrings(html_source); |
898 | 900 |
899 policy_indicator::AddLocalizedStrings(html_source); | 901 policy_indicator::AddLocalizedStrings(html_source); |
900 | 902 |
901 html_source->SetJsonPath(kLocalizedStringsFile); | 903 html_source->SetJsonPath(kLocalizedStringsFile); |
902 } | 904 } |
903 | 905 |
904 } // namespace settings | 906 } // namespace settings |
OLD | NEW |