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

Unified Diff: content/browser/browser_main_loop.cc

Issue 11876044: Remove support for 'system' SSL on Mac (SecureTransport) and Win (SChannel) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 255e63a3eceb6309456daaeaa7027b1941e10313..b58a2cb2267779a56d004a1b0aa6ba3c07f5f733 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -279,24 +279,8 @@ void BrowserMainLoop::EarlyInitialization() {
#endif
#if !defined(USE_OPENSSL)
- // Use NSS for SSL by default.
- // The default client socket factory uses NSS for SSL by default on
- // Windows and Mac.
- bool init_nspr = false;
-#if defined(OS_WIN) || defined(OS_MACOSX)
- if (parsed_command_line_.HasSwitch(switches::kUseSystemSSL)) {
- net::ClientSocketFactory::UseSystemSSL();
- } else {
- init_nspr = true;
- }
- UMA_HISTOGRAM_BOOLEAN("Chrome.CommandLineUseSystemSSL", !init_nspr);
-#elif defined(USE_NSS)
- init_nspr = true;
-#endif
- if (init_nspr) {
- // We want to be sure to init NSPR on the main thread.
- crypto::EnsureNSPRInit();
- }
+ // We want to be sure to init NSPR on the main thread.
wtc 2013/01/15 23:50:22 It is useful to keep the "Use NSS for SSL" part of
Ryan Sleevi 2013/01/15 23:57:45 We still need to initialize NSPR for Crypto - inde
wtc 2013/01/16 00:36:03 Ah, you're right.
+ crypto::EnsureNSPRInit();
#endif // !defined(USE_OPENSSL)
#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698