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

Unified Diff: content/app/content_main_runner.cc

Issue 323723002: Removing WTL from content runner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: BrowserAccessibilityTest fix Created 6 years, 6 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/browser/accessibility/browser_accessibility_manager_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/content_main_runner.cc
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index 8c767321132a4e139bebbc9c7303906a1dda3410..9a87397c181618d01050d4adac1110543fcedffd 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -69,12 +69,11 @@
#endif
#if defined(OS_WIN)
-#include <atlbase.h>
-#include <atlapp.h>
#include <malloc.h>
#include <cstring>
#include "base/strings/string_number_conversions.h"
+#include "ui/base/win/atl_module.h"
#include "ui/base/win/dpi_setup.h"
#include "ui/gfx/win/dpi.h"
#elif defined(OS_MACOSX)
@@ -136,8 +135,6 @@ base::LazyInstance<ContentUtilityClient>
#if defined(OS_WIN)
-static CAppModule _Module;
-
#endif // defined(OS_WIN)
#if defined(OS_POSIX) && !defined(OS_IOS)
@@ -480,7 +477,7 @@ class ContentMainRunnerImpl : public ContentMainRunner {
#if defined(OS_WIN)
RegisterInvalidParamHandler();
- _Module.Init(NULL, static_cast<HINSTANCE>(params.instance));
+ ui::win::CreateATLModuleIfNeeded();
sandbox_info_ = *params.sandbox_info;
#else // !OS_WIN
@@ -775,8 +772,6 @@ class ContentMainRunnerImpl : public ContentMainRunner {
#ifdef _CRTDBG_MAP_ALLOC
_CrtDumpMemoryLeaks();
#endif // _CRTDBG_MAP_ALLOC
-
- _Module.Term();
#endif // OS_WIN
#if defined(OS_MACOSX)
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698