diff options
Diffstat (limited to 'chromium/content/browser/browser_main_runner.cc')
-rw-r--r-- | chromium/content/browser/browser_main_runner.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chromium/content/browser/browser_main_runner.cc b/chromium/content/browser/browser_main_runner.cc index 6d510b3fcd9..2974724c930 100644 --- a/chromium/content/browser/browser_main_runner.cc +++ b/chromium/content/browser/browser_main_runner.cc @@ -85,10 +85,12 @@ class BrowserMainRunnerImpl : public BrowserMainRunner { notification_service_.reset(new NotificationServiceImpl); #if defined(OS_WIN) +#if !defined(TOOLKIT_QT) // Ole must be initialized before starting message pump, so that TSF // (Text Services Framework) module can interact with the message pump // on Windows 8 Metro mode. ole_initializer_.reset(new ui::ScopedOleInitializer); +#endif // Enable DirectWrite font rendering if needed. gfx::win::MaybeInitializeDirectWrite(); #endif // OS_WIN @@ -200,7 +202,7 @@ class BrowserMainRunnerImpl : public BrowserMainRunner { main_loop_->ShutdownThreadsAndCleanUp(); ui::ShutdownInputMethod(); - #if defined(OS_WIN) + #if defined(OS_WIN) && !defined(TOOLKIT_QT) ole_initializer_.reset(NULL); #endif #if defined(OS_ANDROID) @@ -227,7 +229,7 @@ class BrowserMainRunnerImpl : public BrowserMainRunner { std::unique_ptr<NotificationServiceImpl> notification_service_; std::unique_ptr<BrowserMainLoop> main_loop_; -#if defined(OS_WIN) +#if defined(OS_WIN) && !defined(TOOLKIT_QT) std::unique_ptr<ui::ScopedOleInitializer> ole_initializer_; #endif |