| 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 76a0c32b2b67244d39566f2615d60f3f90561349..0e7447558e8f87679a83f3848b767df2f8c2ee39 100644
|
| --- a/chrome/browser/extensions/extension_event_router.cc
|
| +++ b/chrome/browser/extensions/extension_event_router.cc
|
| @@ -203,7 +203,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->context() != restrict_to_profile;
|
| const Extension* extension = service->GetExtensionById(
|
| listener->extension_id, false);
|
| // Send the event with different arguments to extensions that can't
|
|
|