Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: extensions/browser/process_manager.cc

Issue 1413853005: Track all extension frames in ProcessManager, inspect extensionoptions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698