Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 1632403003: [MD settings] download mocks changes; added disable option for google drive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge with master Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698