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

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

Issue 1842403004: MD Settings: Certificate manager, move "Import" button to the tab level. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comment. Created 4 years, 8 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/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 arraysize(localized_strings)); 198 arraysize(localized_strings));
199 } 199 }
200 #endif 200 #endif
201 201
202 #if defined(USE_NSS_CERTS) 202 #if defined(USE_NSS_CERTS)
203 void AddCertificateManagerStrings(content::WebUIDataSource* html_source) { 203 void AddCertificateManagerStrings(content::WebUIDataSource* html_source) {
204 LocalizedString localized_strings[] = { 204 LocalizedString localized_strings[] = {
205 {"certificateManagerPageTitle", IDS_SETTINGS_CERTIFICATE_MANAGER}, 205 {"certificateManagerPageTitle", IDS_SETTINGS_CERTIFICATE_MANAGER},
206 {"certificateManagerYourCertificates", 206 {"certificateManagerYourCertificates",
207 IDS_SETTINGS_CERTIFICATE_MANAGER_YOUR_CERTIFICATES}, 207 IDS_SETTINGS_CERTIFICATE_MANAGER_YOUR_CERTIFICATES},
208 {"certificateManagerYourCertificatesDescription",
209 IDS_SETTINGS_CERTIFICATE_MANAGER_YOUR_CERTIFICATES_DESCRIPTION},
208 {"certificateManagerServers", IDS_SETTINGS_CERTIFICATE_MANAGER_SERVERS}, 210 {"certificateManagerServers", IDS_SETTINGS_CERTIFICATE_MANAGER_SERVERS},
211 {"certificateManagerServersDescription",
212 IDS_SETTINGS_CERTIFICATE_MANAGER_SERVERS_DESCRIPTION},
209 {"certificateManagerAuthorities", 213 {"certificateManagerAuthorities",
210 IDS_SETTINGS_CERTIFICATE_MANAGER_AUTHORITIES}, 214 IDS_SETTINGS_CERTIFICATE_MANAGER_AUTHORITIES},
215 {"certificateManagerAuthoritiesDescription",
216 IDS_SETTINGS_CERTIFICATE_MANAGER_AUTHORITIES_DESCRIPTION},
211 {"certificateManagerOthers", IDS_SETTINGS_CERTIFICATE_MANAGER_OTHERS}, 217 {"certificateManagerOthers", IDS_SETTINGS_CERTIFICATE_MANAGER_OTHERS},
218 {"certificateManagerOthersDescription",
219 IDS_SETTINGS_CERTIFICATE_MANAGER_OTHERS_DESCRIPTION},
212 {"certificateManagerView", IDS_SETTINGS_CERTIFICATE_MANAGER_VIEW}, 220 {"certificateManagerView", IDS_SETTINGS_CERTIFICATE_MANAGER_VIEW},
213 {"certificateManagerEdit", IDS_SETTINGS_CERTIFICATE_MANAGER_EDIT}, 221 {"certificateManagerEdit", IDS_SETTINGS_CERTIFICATE_MANAGER_EDIT},
214 {"certificateManagerImport", IDS_SETTINGS_CERTIFICATE_MANAGER_IMPORT}, 222 {"certificateManagerImport", IDS_SETTINGS_CERTIFICATE_MANAGER_IMPORT},
215 {"certificateManagerImportAndBind", 223 {"certificateManagerImportAndBind",
216 IDS_SETTINGS_CERTIFICATE_MANAGER_IMPORT_AND_BIND}, 224 IDS_SETTINGS_CERTIFICATE_MANAGER_IMPORT_AND_BIND},
217 {"certificateManagerExport", IDS_SETTINGS_CERTIFICATE_MANAGER_EXPORT}, 225 {"certificateManagerExport", IDS_SETTINGS_CERTIFICATE_MANAGER_EXPORT},
218 {"certificateManagerDelete", IDS_SETTINGS_CERTIFICATE_MANAGER_DELETE}, 226 {"certificateManagerDelete", IDS_SETTINGS_CERTIFICATE_MANAGER_DELETE},
219 {"certificateManagerDone", IDS_SETTINGS_CERTIFICATE_MANAGER_DONE}, 227 {"certificateManagerDone", IDS_SETTINGS_CERTIFICATE_MANAGER_DONE},
220 {"certificateManagerUntrusted", 228 {"certificateManagerUntrusted",
221 IDS_SETTINGS_CERTIFICATE_MANAGER_UNTRUSTED}, 229 IDS_SETTINGS_CERTIFICATE_MANAGER_UNTRUSTED},
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 #endif 913 #endif
906 AddUsersStrings(html_source); 914 AddUsersStrings(html_source);
907 AddWebContentStrings(html_source); 915 AddWebContentStrings(html_source);
908 916
909 policy_indicator::AddLocalizedStrings(html_source); 917 policy_indicator::AddLocalizedStrings(html_source);
910 918
911 html_source->SetJsonPath(kLocalizedStringsFile); 919 html_source->SetJsonPath(kLocalizedStringsFile);
912 } 920 }
913 921
914 } // namespace settings 922 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698