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

Unified Diff: content/browser/browser_main_runner.cc

Issue 11000010: We don't need to do both OleInitialize() and CoInitializeEx() on the same thread. Eliminate the Sc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | « content/browser/browser_main_loop.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_runner.cc
===================================================================
--- content/browser/browser_main_runner.cc (revision 158860)
+++ content/browser/browser_main_runner.cc (working copy)
@@ -20,7 +20,7 @@
#if defined(OS_WIN)
#include "base/win/metro.h"
-#include "base/win/scoped_com_initializer.h"
+#include "ui/base/win/scoped_ole_initializer.h"
#include "ui/base/win/tsf_bridge.h"
#endif
@@ -94,7 +94,7 @@
// Make this call before going multithreaded, or spawning any subprocesses.
base::allocator::SetupSubprocessAllocator();
#endif
- com_initializer_.reset(new base::win::ScopedCOMInitializer);
+ ole_initializer_.reset(new ui::ScopedOleInitializer);
if (base::win::IsTsfAwareRequired())
ui::TsfBridge::Initialize();
#endif // OS_WIN
@@ -134,7 +134,7 @@
#if defined(OS_WIN)
if (base::win::IsTsfAwareRequired())
ui::TsfBridge::GetInstance()->Shutdown();
- com_initializer_.reset(NULL);
+ ole_initializer_.reset(NULL);
#endif
main_loop_.reset(NULL);
@@ -157,7 +157,7 @@
scoped_ptr<NotificationServiceImpl> notification_service_;
scoped_ptr<content::BrowserMainLoop> main_loop_;
#if defined(OS_WIN)
- scoped_ptr<base::win::ScopedCOMInitializer> com_initializer_;
+ scoped_ptr<ui::ScopedOleInitializer> ole_initializer_;
#endif
DISALLOW_COPY_AND_ASSIGN(BrowserMainRunnerImpl);
« no previous file with comments | « content/browser/browser_main_loop.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698