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

Side by Side Diff: chrome/browser/browser_main_win.cc

Issue 5805005: Revert 68827 - Use SChannel for Windows.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | « no previous file | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browser_main.h" 5 #include "chrome/browser/browser_main.h"
6 #include "chrome/browser/browser_main_win.h" 6 #include "chrome/browser/browser_main_win.h"
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 10
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 l10n_util::OverrideLocaleWithUILanguageList(); 233 l10n_util::OverrideLocaleWithUILanguageList();
234 } 234 }
235 } 235 }
236 236
237 private: 237 private:
238 virtual void InitializeSSL() { 238 virtual void InitializeSSL() {
239 // Use NSS for SSL by default. 239 // Use NSS for SSL by default.
240 // Because of a build system issue (http://crbug.com/43461), the default 240 // Because of a build system issue (http://crbug.com/43461), the default
241 // client socket factory uses SChannel (the system SSL library) for SSL by 241 // client socket factory uses SChannel (the system SSL library) for SSL by
242 // default on Windows. 242 // default on Windows.
243
244 // Disabling this temporarily to test out if NSS is causing heap corruption.
245 #if 0
246 if (!parsed_command_line().HasSwitch(switches::kUseSystemSSL)) { 243 if (!parsed_command_line().HasSwitch(switches::kUseSystemSSL)) {
247 net::ClientSocketFactory::SetSSLClientSocketFactory( 244 net::ClientSocketFactory::SetSSLClientSocketFactory(
248 net::SSLClientSocketNSSFactory); 245 net::SSLClientSocketNSSFactory);
249 // We want to be sure to init NSPR on the main thread. 246 // We want to be sure to init NSPR on the main thread.
250 base::EnsureNSPRInit(); 247 base::EnsureNSPRInit();
251 } 248 }
252 #endif
253 } 249 }
254 }; 250 };
255 251
256 // static 252 // static
257 BrowserMainParts* BrowserMainParts::CreateBrowserMainParts( 253 BrowserMainParts* BrowserMainParts::CreateBrowserMainParts(
258 const MainFunctionParams& parameters) { 254 const MainFunctionParams& parameters) {
259 return new BrowserMainPartsWin(parameters); 255 return new BrowserMainPartsWin(parameters);
260 } 256 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698