| Index: chrome/browser/extensions/extension_service.cc
|
| diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
|
| index 6afe4cee62aa1436bbd0d50f2fe0a824fd307023..b3be3ec4e8fce770a8cb75e0c41361e1555955d6 100644
|
| --- a/chrome/browser/extensions/extension_service.cc
|
| +++ b/chrome/browser/extensions/extension_service.cc
|
| @@ -1337,7 +1337,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)));
|
| @@ -1433,10 +1434,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);
|
|
|