Index: extensions/browser/process_manager.cc |
diff --git a/extensions/browser/process_manager.cc b/extensions/browser/process_manager.cc |
index 8b2b4b534b92e13bad3a2a9530c0f928c93eb284..218c5828a21c541657d8ed0aaea89779f368df5a 100644 |
--- a/extensions/browser/process_manager.cc |
+++ b/extensions/browser/process_manager.cc |
@@ -324,17 +324,10 @@ const ProcessManager::FrameSet ProcessManager::GetAllFrames() const { |
ProcessManager::FrameSet ProcessManager::GetRenderFrameHostsForExtension( |
const std::string& extension_id) { |
FrameSet result; |
- scoped_refptr<content::SiteInstance> site_instance(GetSiteInstanceForURL( |
- Extension::GetBaseURLFromExtensionId(extension_id))); |
- if (!site_instance.get()) |
- return result; |
- |
- // Gather up all the frames for that site. |
for (const auto& key_value : all_extension_frames_) { |
- if (key_value.first->GetSiteInstance() == site_instance) |
Devlin
2015/10/30 01:21:44
I thought we made sure that extensions could only
ncarter (slow)
2015/10/30 06:22:20
The code you're thinking of is actually in this fi
robwu
2015/10/30 10:15:50
I also expected extensions to have only one SiteIn
ncarter (slow)
2015/10/30 15:53:44
SiteInstanceImpl::GetRelatedSiteInstance() just ca
robwu
2015/10/30 23:02:44
That is correct. The BrowsingInstances are differe
|
+ if (GetExtensionID(key_value.first) == extension_id) |
result.insert(key_value.first); |
} |
- |
return result; |
} |