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

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

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

Powered by Google App Engine
This is Rietveld 408576698