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 8210d748a6b09f950d6f632327af3845186a8d0f..c9243ed612c9d055c391db328aafaaa8de494a92 100644 |
--- a/chrome/browser/extensions/api/input_ime/input_ime_api.cc |
+++ b/chrome/browser/extensions/api/input_ime/input_ime_api.cc |
@@ -778,12 +778,14 @@ bool InputImeKeyEventHandledFunction::RunImpl() { |
} |
#endif |
-InputImeAPI::InputImeAPI(Profile* profile) |
- : profile_(profile) { |
- registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED, |
- content::Source<Profile>(profile)); |
- registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED, |
- content::Source<Profile>(profile)); |
+InputImeAPI::InputImeAPI(content::BrowserContext* context) |
+ : profile_(Profile::FromBrowserContext(context)) { |
+ registrar_.Add(this, |
+ chrome::NOTIFICATION_EXTENSION_LOADED, |
+ content::Source<Profile>(profile_)); |
+ registrar_.Add(this, |
+ chrome::NOTIFICATION_EXTENSION_UNLOADED, |
+ content::Source<Profile>(profile_)); |
} |
InputImeAPI::~InputImeAPI() { |