| 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..a74a6f65a75e4f9087cc27d56700b605de763f2e 100644
|
| --- a/chrome/browser/extensions/api/input_ime/input_ime_api.cc
|
| +++ b/chrome/browser/extensions/api/input_ime/input_ime_api.cc
|
| @@ -264,7 +264,7 @@ void InputImeEventRouterFactory::RemoveProfile(Profile* profile) {
|
| if (!profile || router_map_.empty())
|
| return;
|
| auto it = router_map_.find(profile);
|
| - if (it != router_map_.end()) {
|
| + if (it != router_map_.end() && it->first == profile) {
|
| delete it->second;
|
| router_map_.erase(it);
|
| }
|
|
|