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

Side by Side Diff: net/base/ev_root_ca_metadata.cc

Issue 9117038: Convert all remaining explicit LeakyLazyInstanceTraits users to ::Leaky (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/indexed_db/indexed_db_dispatcher.cc ('k') | net/base/ssl_config_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "net/base/ev_root_ca_metadata.h" 5 #include "net/base/ev_root_ca_metadata.h"
6 6
7 #if defined(USE_NSS) 7 #if defined(USE_NSS)
8 #include <cert.h> 8 #include <cert.h>
9 #include <pkcs11n.h> 9 #include <pkcs11n.h>
10 #include <secerr.h> 10 #include <secerr.h>
11 #include <secoid.h> 11 #include <secoid.h>
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 "2.16.840.1.113733.1.7.48.1", 307 "2.16.840.1.113733.1.7.48.1",
308 "2.16.840.1.114028.10.1.2", 308 "2.16.840.1.114028.10.1.2",
309 "2.16.840.1.114171.500.9", 309 "2.16.840.1.114171.500.9",
310 "2.16.840.1.114404.1.1.2.4.1", 310 "2.16.840.1.114404.1.1.2.4.1",
311 "2.16.840.1.114412.2.1", 311 "2.16.840.1.114412.2.1",
312 "2.16.840.1.114413.1.7.23.3", 312 "2.16.840.1.114413.1.7.23.3",
313 "2.16.840.1.114414.1.7.23.3", 313 "2.16.840.1.114414.1.7.23.3",
314 }; 314 };
315 #endif 315 #endif
316 316
317 static base::LazyInstance<EVRootCAMetadata, 317 static base::LazyInstance<EVRootCAMetadata>::Leaky
318 base::LeakyLazyInstanceTraits<EVRootCAMetadata> >
319 g_ev_root_ca_metadata = LAZY_INSTANCE_INITIALIZER; 318 g_ev_root_ca_metadata = LAZY_INSTANCE_INITIALIZER;
320 319
321 // static 320 // static
322 EVRootCAMetadata* EVRootCAMetadata::GetInstance() { 321 EVRootCAMetadata* EVRootCAMetadata::GetInstance() {
323 return g_ev_root_ca_metadata.Pointer(); 322 return g_ev_root_ca_metadata.Pointer();
324 } 323 }
325 324
326 bool EVRootCAMetadata::GetPolicyOIDsForCA( 325 bool EVRootCAMetadata::GetPolicyOIDsForCA(
327 const SHA1Fingerprint& fingerprint, 326 const SHA1Fingerprint& fingerprint,
328 std::vector<PolicyOID>* policy_oids) const { 327 std::vector<PolicyOID>* policy_oids) const {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 // static 435 // static
437 bool EVRootCAMetadata::PolicyOIDsAreEqual(PolicyOID a, PolicyOID b) { 436 bool EVRootCAMetadata::PolicyOIDsAreEqual(PolicyOID a, PolicyOID b) {
438 #if defined(USE_NSS) 437 #if defined(USE_NSS)
439 return a == b; 438 return a == b;
440 #else 439 #else
441 return !strcmp(a, b); 440 return !strcmp(a, b);
442 #endif 441 #endif
443 } 442 }
444 443
445 } // namespace net 444 } // namespace net
OLDNEW
« no previous file with comments | « content/renderer/indexed_db/indexed_db_dispatcher.cc ('k') | net/base/ssl_config_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698