Chromium Code Reviews| Index: chrome/browser/chrome_browser_main_win.cc |
| diff --git a/chrome/browser/chrome_browser_main_win.cc b/chrome/browser/chrome_browser_main_win.cc |
| index a03619dade95264634bcf9a49ca3509a770c3ad3..597b06f2305cde677f0e27e2ca6d0510179929bc 100644 |
| --- a/chrome/browser/chrome_browser_main_win.cc |
| +++ b/chrome/browser/chrome_browser_main_win.cc |
| @@ -18,6 +18,7 @@ |
| #include "base/string_number_conversions.h" |
| #include "base/utf_string_conversions.h" |
| #include "base/win/metro.h" |
| +#include "base/win/text_services_message_filter.h" |
| #include "base/win/windows_version.h" |
| #include "base/win/wrapped_window_proc.h" |
| #include "chrome/browser/browser_util_win.h" |
| @@ -188,6 +189,21 @@ void ChromeBrowserMainPartsWin::PreMainMessageLoopStart() { |
| new chrome::MediaDeviceNotificationsWindowWin(); |
| } |
| +void ChromeBrowserMainPartsWin::PostMainMessageLoopStart() { |
| + DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); |
| + |
| + if (base::win::IsTsfAwareRequired()) { |
| + // Create a TSF message filter for the message loop. MessageLoop takes |
| + // ownership of the filter. |
| + scoped_ptr<base::MessagePumpForUI::MessageFilter> tsf_message_filter( |
|
rvargas (doing something else)
2012/09/05 21:25:03
Should not use MessagePumpForUI directly.
yoichio
2012/09/06 00:48:33
Done.
|
| + new base::win::TextServicesMessageFilter); |
| + if (tsf_message_filter->Init()) { |
| + MessageLoopForUI::current()->SetMessageFilter( |
| + tsf_message_filter.release()); |
| + } |
| + } |
| +} |
| + |
| // static |
| void ChromeBrowserMainPartsWin::PrepareRestartOnCrashEnviroment( |
| const CommandLine& parsed_command_line) { |