Remove dependency to primary root window in InputMethodEventFilter
[email protected]
BUG=123160
TEST=no functional change. all tests should pass.
Review URL: https://chromiumcodereview.appspot.com/10440128
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140236 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/ash/shell.cc b/ash/shell.cc
index cd92511..9d667d8c 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -720,8 +720,8 @@
// InputMethodEventFilter must be the third one. It has to be added before
// AcceleratorFilter.
DCHECK_EQ(2U, GetRootWindowEventFilterCount());
- input_method_filter_.reset(
- new aura::shared::InputMethodEventFilter(root_window));
+ input_method_filter_.reset(new aura::shared::InputMethodEventFilter());
+ input_method_filter_->SetInputMethodPropertyInRootWindow(root_window);
AddRootWindowEventFilter(input_method_filter_.get());
#if !defined(OS_MACOSX)
accelerator_filter_.reset(new internal::AcceleratorFilter);