Chromium Code Reviews| Index: chrome/browser/extensions/api/input_ime/input_ime_api.cc |
| diff --git a/chrome/browser/extensions/api/input_ime/input_ime_api.cc b/chrome/browser/extensions/api/input_ime/input_ime_api.cc |
| index 8cef3353a1b371000adf0bb906015cae3b06db2a..14ed95973997b08279d592e7b9000f32d9413273 100644 |
| --- a/chrome/browser/extensions/api/input_ime/input_ime_api.cc |
| +++ b/chrome/browser/extensions/api/input_ime/input_ime_api.cc |
| @@ -413,8 +413,6 @@ BrowserContextKeyedAPIFactory<InputImeAPI>* InputImeAPI::GetFactoryInstance() { |
| InputImeEventRouter* GetInputImeEventRouter(Profile* profile) { |
| if (!profile) |
| return nullptr; |
|
Shu Chen
2016/04/19 07:27:17
the null check here seems unnecessary.
Azure Wei
2016/04/19 08:15:15
Removed.
|
| - if (profile->HasOffTheRecordProfile()) |
| - profile = profile->GetOffTheRecordProfile(); |
| return extensions::InputImeEventRouterFactory::GetInstance()->GetRouter( |
| profile); |
| } |