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

Side by Side Diff: base/nss_init.cc

Issue 452014: Remove the unnecessary workaround for NSS bug 455424, now that we require... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Add ssl_client_socket_nss.cc to the CL. Created 11 years 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 | « base/crypto/signature_creator_nss.cc ('k') | net/base/cert_database_nss.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) 2008-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008-2009 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 "base/nss_init.h" 5 #include "base/nss_init.h"
6 6
7 #include <dlfcn.h> 7 #include <dlfcn.h>
8 #include <nss.h> 8 #include <nss.h>
9 #include <plarena.h> 9 #include <plarena.h>
10 #include <prerror.h> 10 #include <prerror.h>
11 #include <prinit.h> 11 #include <prinit.h>
12
13 // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=455424
14 // until NSS 3.12.2 comes out and we update to it.
15 #define Lock FOO_NSS_Lock
16 #include <pk11pub.h> 12 #include <pk11pub.h>
17 #include <secmod.h> 13 #include <secmod.h>
18 #include <ssl.h> 14 #include <ssl.h>
19 #undef Lock
20 15
21 #include "base/file_util.h" 16 #include "base/file_util.h"
22 #include "base/logging.h" 17 #include "base/logging.h"
23 #include "base/singleton.h" 18 #include "base/singleton.h"
24 #include "base/string_util.h" 19 #include "base/string_util.h"
25 20
26 namespace { 21 namespace {
27 22
28 std::string GetDefaultConfigDirectory() { 23 std::string GetDefaultConfigDirectory() {
29 const char* home = getenv("HOME"); 24 const char* home = getenv("HOME");
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 171
177 void EnsureNSPRInit() { 172 void EnsureNSPRInit() {
178 Singleton<NSPRInitSingleton>::get(); 173 Singleton<NSPRInitSingleton>::get();
179 } 174 }
180 175
181 void EnsureNSSInit() { 176 void EnsureNSSInit() {
182 Singleton<NSSInitSingleton>::get(); 177 Singleton<NSSInitSingleton>::get();
183 } 178 }
184 179
185 } // namespace base 180 } // namespace base
OLDNEW
« no previous file with comments | « base/crypto/signature_creator_nss.cc ('k') | net/base/cert_database_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698