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

Unified Diff: chrome/browser/browser_main_win.cc

Issue 7840041: Refactor some more BrowserMain code. Move core code that's required by all embedders to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 9 years, 3 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 | « chrome/browser/browser_main_win.h ('k') | chrome/browser/chromeos/browser_main_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main_win.cc
===================================================================
--- chrome/browser/browser_main_win.cc (revision 100153)
+++ chrome/browser/browser_main_win.cc (working copy)
@@ -32,13 +32,9 @@
#include "chrome/installer/util/install_util.h"
#include "chrome/installer/util/shell_util.h"
#include "content/common/main_function_params.h"
-#include "crypto/nss_util.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
-#include "net/base/winsock_init.h"
-#include "net/socket/client_socket_factory.h"
#include "ui/base/l10n/l10n_util.h"
-#include "ui/base/l10n/l10n_util_win.h"
#include "ui/base/message_box_win.h"
#include "views/focus/accelerator_handler.h"
#include "views/widget/widget.h"
@@ -287,33 +283,9 @@
: ChromeBrowserMainParts(parameters) {
}
-void BrowserMainPartsWin::PreEarlyInitialization() {
- // Initialize Winsock.
- net::EnsureWinsockInit();
-}
-
void BrowserMainPartsWin::PreMainMessageLoopStart() {
- OleInitialize(NULL);
-
- // If we're running tests (ui_task is non-null), then the ResourceBundle
- // has already been initialized.
if (!parameters().ui_task) {
- // Override the configured locale with the user's preferred UI language.
- l10n_util::OverrideLocaleWithUILanguageList();
-
// Make sure that we know how to handle exceptions from the message loop.
InitializeWindowProcExceptions();
}
}
-
-void BrowserMainPartsWin::InitializeSSL() {
- // Use NSS for SSL by default.
- // The default client socket factory uses NSS for SSL by default on
- // Windows.
- if (parsed_command_line().HasSwitch(switches::kUseSystemSSL)) {
- net::ClientSocketFactory::UseSystemSSL();
- } else {
- // We want to be sure to init NSPR on the main thread.
- crypto::EnsureNSPRInit();
- }
-}
« no previous file with comments | « chrome/browser/browser_main_win.h ('k') | chrome/browser/chromeos/browser_main_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698