| 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 cf3996c4770ff6dae0cc04ee53a09cf178008b37..679f6c1437ff8676d1cea2c90ba5ca1fb9ade965 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);
|
| }
|
|
|