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

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

Issue 2713343003: MD Settings: Add "Auto Open" setting to Downloads page UI. (Closed)
Patch Set: format Created 3 years, 9 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/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 } 68 }
69 69
70 void AddCommonStrings(content::WebUIDataSource* html_source, Profile* profile) { 70 void AddCommonStrings(content::WebUIDataSource* html_source, Profile* profile) {
71 LocalizedString localized_strings[] = { 71 LocalizedString localized_strings[] = {
72 {"add", IDS_ADD}, 72 {"add", IDS_ADD},
73 {"advancedPageTitle", IDS_SETTINGS_ADVANCED}, 73 {"advancedPageTitle", IDS_SETTINGS_ADVANCED},
74 {"back", IDS_ACCNAME_BACK}, 74 {"back", IDS_ACCNAME_BACK},
75 {"basicPageTitle", IDS_SETTINGS_BASIC}, 75 {"basicPageTitle", IDS_SETTINGS_BASIC},
76 {"cancel", IDS_CANCEL}, 76 {"cancel", IDS_CANCEL},
77 {"clear", IDS_SETTINGS_CLEAR},
77 {"close", IDS_CLOSE}, 78 {"close", IDS_CLOSE},
78 {"confirm", IDS_CONFIRM}, 79 {"confirm", IDS_CONFIRM},
79 {"controlledByExtension", IDS_SETTINGS_CONTROLLED_BY_EXTENSION}, 80 {"controlledByExtension", IDS_SETTINGS_CONTROLLED_BY_EXTENSION},
80 #if defined(OS_CHROMEOS) 81 #if defined(OS_CHROMEOS)
81 {"deviceOff", IDS_SETTINGS_DEVICE_OFF}, 82 {"deviceOff", IDS_SETTINGS_DEVICE_OFF},
82 {"deviceOn", IDS_SETTINGS_DEVICE_ON}, 83 {"deviceOn", IDS_SETTINGS_DEVICE_ON},
83 #endif 84 #endif
84 {"disable", IDS_DISABLE}, 85 {"disable", IDS_DISABLE},
85 {"done", IDS_DONE}, 86 {"done", IDS_DONE},
86 {"edit", IDS_SETTINGS_EDIT}, 87 {"edit", IDS_SETTINGS_EDIT},
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 } 692 }
692 #endif 693 #endif
693 694
694 void AddDownloadsStrings(content::WebUIDataSource* html_source) { 695 void AddDownloadsStrings(content::WebUIDataSource* html_source) {
695 LocalizedString localized_strings[] = { 696 LocalizedString localized_strings[] = {
696 {"downloadsPageTitle", IDS_SETTINGS_DOWNLOADS}, 697 {"downloadsPageTitle", IDS_SETTINGS_DOWNLOADS},
697 {"downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION}, 698 {"downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION},
698 {"changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION}, 699 {"changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION},
699 {"promptForDownload", IDS_SETTINGS_PROMPT_FOR_DOWNLOAD}, 700 {"promptForDownload", IDS_SETTINGS_PROMPT_FOR_DOWNLOAD},
700 {"disconnectGoogleDriveAccount", IDS_SETTINGS_DISCONNECT_GOOGLE_DRIVE}, 701 {"disconnectGoogleDriveAccount", IDS_SETTINGS_DISCONNECT_GOOGLE_DRIVE},
701 }; 702 {"openFileTypesAutomatically",
703 IDS_SETTINGS_OPEN_FILE_TYPES_AUTOMATICALLY}};
702 AddLocalizedStringsBulk(html_source, localized_strings, 704 AddLocalizedStringsBulk(html_source, localized_strings,
703 arraysize(localized_strings)); 705 arraysize(localized_strings));
704 } 706 }
705 707
706 void AddResetStrings(content::WebUIDataSource* html_source) { 708 void AddResetStrings(content::WebUIDataSource* html_source) {
707 LocalizedString localized_strings[] = { 709 LocalizedString localized_strings[] = {
708 {"resetPageTitle", IDS_SETTINGS_RESET}, 710 {"resetPageTitle", IDS_SETTINGS_RESET},
709 {"resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION}, 711 {"resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION},
710 {"resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION}, 712 {"resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION},
711 {"triggeredResetPageExplanation", 713 {"triggeredResetPageExplanation",
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1967 1969
1968 #if defined(OS_CHROMEOS) 1970 #if defined(OS_CHROMEOS)
1969 chromeos::network_element::AddLocalizedStrings(html_source); 1971 chromeos::network_element::AddLocalizedStrings(html_source);
1970 #endif 1972 #endif
1971 policy_indicator::AddLocalizedStrings(html_source); 1973 policy_indicator::AddLocalizedStrings(html_source);
1972 1974
1973 html_source->SetJsonPath(kLocalizedStringsFile); 1975 html_source->SetJsonPath(kLocalizedStringsFile);
1974 } 1976 }
1975 1977
1976 } // namespace settings 1978 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/downloads_handler.cc ('k') | chrome/test/data/webui/settings/cr_settings_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698