| Index: chrome/browser/extensions/extension_service.cc
|
| diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
|
| index 61649ce9bcfce5afeb5bcfe8f6b80d477e329e9a..ae710e2b4bfa2f481c09fee5c1bceed453069362 100644
|
| --- a/chrome/browser/extensions/extension_service.cc
|
| +++ b/chrome/browser/extensions/extension_service.cc
|
| @@ -1303,7 +1303,8 @@ 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* host_profile = static_cast<Profile*>(host->context());
|
| + if (host_profile->GetOriginalProfile() ==
|
| profile_->GetOriginalProfile()) {
|
| host->Send(
|
| new ExtensionMsg_Loaded(ExtensionMsg_Loaded_Params(extension)));
|
| @@ -1399,10 +1400,9 @@ void ExtensionService::NotifyExtensionUnloaded(
|
| for (RenderProcessHost::iterator i(RenderProcessHost::AllHostsIterator());
|
| !i.IsAtEnd(); i.Advance()) {
|
| RenderProcessHost* host = i.GetCurrentValue();
|
| - if (host->profile()->GetOriginalProfile() ==
|
| - profile_->GetOriginalProfile()) {
|
| + Profile* profile = static_cast<Profile*>(host->context());
|
| + if (profile->GetOriginalProfile() == profile_->GetOriginalProfile())
|
| host->Send(new ExtensionMsg_Unloaded(extension->id()));
|
| - }
|
| }
|
|
|
| profile_->UnregisterExtensionWithRequestContexts(extension->id(), reason);
|
|
|