Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: chrome/browser/extensions/api/input_ime/input_ime_api.h

Issue 1896993003: Not use ProfileCompare when removing profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ProfileCompare. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698