| Index: chrome/browser/extensions/extension_service.cc
|
| diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
|
| index 5ff972ebbf4e5fee041716b4f24e2fcfbad6ffec..c31e7ed2e28641b253eb46aa82f06a7b6472729a 100644
|
| --- a/chrome/browser/extensions/extension_service.cc
|
| +++ b/chrome/browser/extensions/extension_service.cc
|
| @@ -1353,8 +1353,9 @@ void ExtensionService::NotifyExtensionLoaded(const Extension* extension) {
|
| for (RenderProcessHost::iterator i(RenderProcessHost::AllHostsIterator());
|
| !i.IsAtEnd(); i.Advance()) {
|
| RenderProcessHost* host = i.GetCurrentValue();
|
| - if (host->profile()->GetOriginalProfile() ==
|
| - profile_->GetOriginalProfile()) {
|
| + Profile* host_profile =
|
| + Profile::FromBrowserContext(host->browser_context());
|
| + if (host_profile->GetOriginalProfile() == profile_->GetOriginalProfile()) {
|
| host->Send(
|
| new ExtensionMsg_Loaded(ExtensionMsg_Loaded_Params(extension)));
|
| }
|
| @@ -1449,10 +1450,10 @@ void ExtensionService::NotifyExtensionUnloaded(
|
| for (RenderProcessHost::iterator i(RenderProcessHost::AllHostsIterator());
|
| !i.IsAtEnd(); i.Advance()) {
|
| RenderProcessHost* host = i.GetCurrentValue();
|
| - if (host->profile()->GetOriginalProfile() ==
|
| - profile_->GetOriginalProfile()) {
|
| + Profile* host_profile =
|
| + Profile::FromBrowserContext(host->browser_context());
|
| + if (host_profile->GetOriginalProfile() == profile_->GetOriginalProfile())
|
| host->Send(new ExtensionMsg_Unloaded(extension->id()));
|
| - }
|
| }
|
|
|
| profile_->UnregisterExtensionWithRequestContexts(extension->id(), reason);
|
|
|