Index: chrome/browser/chromeos/extensions/input_method_event_router.cc |
diff --git a/chrome/browser/chromeos/extensions/input_method_event_router.cc b/chrome/browser/chromeos/extensions/input_method_event_router.cc |
index 79e4f7303b65926b0b969dcc0cedaee39c39befb..be9163a1e826df300cb4c030b52c1ba26919e48c 100644 |
--- a/chrome/browser/chromeos/extensions/input_method_event_router.cc |
+++ b/chrome/browser/chromeos/extensions/input_method_event_router.cc |
@@ -9,6 +9,7 @@ |
#include "base/json/json_writer.h" |
#include "base/values.h" |
#include "chrome/browser/chromeos/extensions/input_method_api.h" |
+#include "chrome/browser/profiles/profile.h" |
#include "content/public/browser/browser_context.h" |
#include "extensions/browser/event_router.h" |
#include "extensions/browser/extension_system.h" |
@@ -26,8 +27,10 @@ ExtensionInputMethodEventRouter::~ExtensionInputMethodEventRouter() { |
} |
void ExtensionInputMethodEventRouter::InputMethodChanged( |
- input_method::InputMethodManager *manager, |
+ input_method::InputMethodManager* manager, |
+ Profile* profile, |
bool show_message) { |
+ CHECK(static_cast<content::BrowserContext*>(profile) == context_); |
robliao
2015/05/06 18:20:32
This will trigger a chrome crash if it fails. How
Alexander Alekseev
2015/05/07 15:21:57
Here is crbug.com/483258 - what happens (crash) wh
robliao
2015/05/08 17:30:20
Add a comment about the use of the CHECK here then
Alexander Alekseev
2015/05/12 17:30:45
I've replaced CHECK with DCHECK and comment.
I'll
|
extensions::EventRouter* router = extensions::EventRouter::Get(context_); |
if (!router->HasEventListener( |