Index: chrome/browser/extensions/extension_event_router.cc |
diff --git a/chrome/browser/extensions/extension_event_router.cc b/chrome/browser/extensions/extension_event_router.cc |
index 44561cecbf2fa846b9dbef5702a1ec03288c0770..7a9cb34065807cd76bf647eaab015609c542f117 100644 |
--- a/chrome/browser/extensions/extension_event_router.cc |
+++ b/chrome/browser/extensions/extension_event_router.cc |
@@ -202,7 +202,7 @@ void ExtensionEventRouter::DispatchEventImpl( |
// Is this event from a different profile than the renderer (ie, an |
// incognito tab event sent to a normal process, or vice versa). |
bool cross_incognito = restrict_to_profile && |
- listener->process->profile() != restrict_to_profile; |
+ listener->process->browser_context() != restrict_to_profile; |
jam
2011/07/27 17:17:57
will this automatically cast the Profile* to a Bro
|
const Extension* extension = service->GetExtensionById( |
listener->extension_id, false); |
// Send the event with different arguments to extensions that can't |