Commit 8c271870 authored by shuchen@chromium.org's avatar shuchen@chromium.org

Clean up useless code in InputMethodManagerImpl.

BUG=342336
TEST=None

Review URL: https://codereview.chromium.org/448923003

Cr-Commit-Position: refs/heads/master@{#288378}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288378 0039d316-1c4b-4281-b951-d872f2087c98
parent 6c05060c
...@@ -61,8 +61,7 @@ InputMethodManagerImpl::InputMethodManagerImpl( ...@@ -61,8 +61,7 @@ InputMethodManagerImpl::InputMethodManagerImpl(
: delegate_(delegate.Pass()), : delegate_(delegate.Pass()),
state_(STATE_LOGIN_SCREEN), state_(STATE_LOGIN_SCREEN),
util_(delegate_.get()), util_(delegate_.get()),
component_extension_ime_manager_(new ComponentExtensionIMEManager()), component_extension_ime_manager_(new ComponentExtensionIMEManager()) {
weak_ptr_factory_(this) {
if (base::SysInfo::IsRunningOnChromeOS()) if (base::SysInfo::IsRunningOnChromeOS())
keyboard_.reset(ImeKeyboard::Create()); keyboard_.reset(ImeKeyboard::Create());
else else
...@@ -790,7 +789,6 @@ InputMethodUtil* InputMethodManagerImpl::GetInputMethodUtil() { ...@@ -790,7 +789,6 @@ InputMethodUtil* InputMethodManagerImpl::GetInputMethodUtil() {
ComponentExtensionIMEManager* ComponentExtensionIMEManager*
InputMethodManagerImpl::GetComponentExtensionIMEManager() { InputMethodManagerImpl::GetComponentExtensionIMEManager() {
DCHECK(thread_checker_.CalledOnValidThread());
return component_extension_ime_manager_.get(); return component_extension_ime_manager_.get();
} }
......
...@@ -203,10 +203,6 @@ class InputMethodManagerImpl : public InputMethodManager, ...@@ -203,10 +203,6 @@ class InputMethodManagerImpl : public InputMethodManager,
// auto-repeat interval. // auto-repeat interval.
scoped_ptr<ImeKeyboard> keyboard_; scoped_ptr<ImeKeyboard> keyboard_;
base::ThreadChecker thread_checker_;
base::WeakPtrFactory<InputMethodManagerImpl> weak_ptr_factory_;
// The engine map from extension_id to an engine. // The engine map from extension_id to an engine.
std::map<std::string, InputMethodEngineInterface*> engine_map_; std::map<std::string, InputMethodEngineInterface*> engine_map_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment