Chromium Code Reviews| Index: chrome/browser/extensions/api/input_ime/input_ime_api.h |
| diff --git a/chrome/browser/extensions/api/input_ime/input_ime_api.h b/chrome/browser/extensions/api/input_ime/input_ime_api.h |
| index 2b2f81be12545ac6a69b9a36e87da57bbc0b2ede..fdf96c8bbbc58f83564ca16bb14fe169f2f5206f 100644 |
| --- a/chrome/browser/extensions/api/input_ime/input_ime_api.h |
| +++ b/chrome/browser/extensions/api/input_ime/input_ime_api.h |
| @@ -5,8 +5,8 @@ |
| #ifndef CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ |
| #define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ |
| -#include <map> |
| #include <string> |
| +#include <unordered_map> |
| #include <vector> |
| #include "base/macros.h" |
| @@ -117,7 +117,7 @@ class InputImeEventRouterFactory { |
| InputImeEventRouterFactory(); |
| ~InputImeEventRouterFactory(); |
| - std::map<Profile*, InputImeEventRouter*, ProfileCompare> router_map_; |
| + std::unordered_map<Profile*, InputImeEventRouter*> router_map_; |
|
Shu Chen
2016/04/19 07:27:17
why using unordered_map?
Azure Wei
2016/04/19 08:15:15
We don't need to sort the profile, so std::unorder
|
| DISALLOW_COPY_AND_ASSIGN(InputImeEventRouterFactory); |
| }; |