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

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: Address comments. 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 arraysize(localized_strings)); 196 arraysize(localized_strings));
197 } 197 }
198 #endif 198 #endif
199 199
200 #if defined(USE_NSS_CERTS) 200 #if defined(USE_NSS_CERTS)
201 void AddCertificateManagerStrings(content::WebUIDataSource* html_source) { 201 void AddCertificateManagerStrings(content::WebUIDataSource* html_source) {
202 LocalizedString localized_strings[] = { 202 LocalizedString localized_strings[] = {
203 {"certificateManagerPageTitle", IDS_SETTINGS_CERTIFICATE_MANAGER}, 203 {"certificateManagerPageTitle", IDS_SETTINGS_CERTIFICATE_MANAGER},
204 {"certificateManagerYourCertificates", 204 {"certificateManagerYourCertificates",
205 IDS_SETTINGS_CERTIFICATE_MANAGER_YOUR_CERTIFICATES}, 205 IDS_SETTINGS_CERTIFICATE_MANAGER_YOUR_CERTIFICATES},
206 {"certificateManagerYourCertificatesDescription",
207 IDS_SETTINGS_CERTIFICATE_MANAGER_YOUR_CERTIFICATES_DESCRIPTION},
206 {"certificateManagerServers", IDS_SETTINGS_CERTIFICATE_MANAGER_SERVERS}, 208 {"certificateManagerServers", IDS_SETTINGS_CERTIFICATE_MANAGER_SERVERS},
209 {"certificateManagerServersDescription",
210 IDS_SETTINGS_CERTIFICATE_MANAGER_SERVERS_DESCRIPTION},
207 {"certificateManagerAuthorities", 211 {"certificateManagerAuthorities",
208 IDS_SETTINGS_CERTIFICATE_MANAGER_AUTHORITIES}, 212 IDS_SETTINGS_CERTIFICATE_MANAGER_AUTHORITIES},
213 {"certificateManagerAuthoritiesDescription",
214 IDS_SETTINGS_CERTIFICATE_MANAGER_AUTHORITIES_DESCRIPTION},
209 {"certificateManagerOthers", IDS_SETTINGS_CERTIFICATE_MANAGER_OTHERS}, 215 {"certificateManagerOthers", IDS_SETTINGS_CERTIFICATE_MANAGER_OTHERS},
216 {"certificateManagerOthersDescription",
217 IDS_SETTINGS_CERTIFICATE_MANAGER_OTHERS_DESCRIPTION},
210 {"certificateManagerView", IDS_SETTINGS_CERTIFICATE_MANAGER_VIEW}, 218 {"certificateManagerView", IDS_SETTINGS_CERTIFICATE_MANAGER_VIEW},
211 {"certificateManagerEdit", IDS_SETTINGS_CERTIFICATE_MANAGER_EDIT}, 219 {"certificateManagerEdit", IDS_SETTINGS_CERTIFICATE_MANAGER_EDIT},
212 {"certificateManagerImport", IDS_SETTINGS_CERTIFICATE_MANAGER_IMPORT}, 220 {"certificateManagerImport", IDS_SETTINGS_CERTIFICATE_MANAGER_IMPORT},
213 {"certificateManagerImportAndBind", 221 {"certificateManagerImportAndBind",
214 IDS_SETTINGS_CERTIFICATE_MANAGER_IMPORT_AND_BIND}, 222 IDS_SETTINGS_CERTIFICATE_MANAGER_IMPORT_AND_BIND},
215 {"certificateManagerExport", IDS_SETTINGS_CERTIFICATE_MANAGER_EXPORT}, 223 {"certificateManagerExport", IDS_SETTINGS_CERTIFICATE_MANAGER_EXPORT},
216 {"certificateManagerDelete", IDS_SETTINGS_CERTIFICATE_MANAGER_DELETE}, 224 {"certificateManagerDelete", IDS_SETTINGS_CERTIFICATE_MANAGER_DELETE},
217 {"certificateManagerDone", IDS_SETTINGS_CERTIFICATE_MANAGER_DONE}, 225 {"certificateManagerDone", IDS_SETTINGS_CERTIFICATE_MANAGER_DONE},
218 {"certificateManagerUntrusted", 226 {"certificateManagerUntrusted",
219 IDS_SETTINGS_CERTIFICATE_MANAGER_UNTRUSTED}, 227 IDS_SETTINGS_CERTIFICATE_MANAGER_UNTRUSTED},
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 #endif 911 #endif
904 AddUsersStrings(html_source); 912 AddUsersStrings(html_source);
905 AddWebContentStrings(html_source); 913 AddWebContentStrings(html_source);
906 914
907 policy_indicator::AddLocalizedStrings(html_source); 915 policy_indicator::AddLocalizedStrings(html_source);
908 916
909 html_source->SetJsonPath(kLocalizedStringsFile); 917 html_source->SetJsonPath(kLocalizedStringsFile);
910 } 918 }
911 919
912 } // namespace settings 920 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698