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

Unified Diff: extensions/browser/extension_web_contents_observer.cc

Issue 2385553002: Revert of Lock down the registration of blob:chrome-extension:// URLs (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « content/public/browser/child_process_security_policy.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_web_contents_observer.cc
diff --git a/extensions/browser/extension_web_contents_observer.cc b/extensions/browser/extension_web_contents_observer.cc
index 6f065256712a5bac065cde5100c4f81c3b96ea8a..52b9041a5ebdc170298bce4c76ea9938a7fad845 100644
--- a/extensions/browser/extension_web_contents_observer.cc
+++ b/extensions/browser/extension_web_contents_observer.cc
@@ -63,15 +63,6 @@
if (!frame_extension)
return;
- // |render_frame_host->GetProcess()| is an extension process. Grant permission
- // to commit pages from chrome-extension:// origins.
- content::ChildProcessSecurityPolicy* security_policy =
- content::ChildProcessSecurityPolicy::GetInstance();
- int process_id = render_frame_host->GetProcess()->GetID();
- security_policy->GrantScheme(process_id, extensions::kExtensionScheme);
- security_policy->GrantScheme(process_id,
- extensions::kExtensionResourceScheme);
-
// Notify the render frame of the view type.
render_frame_host->Send(new ExtensionMsg_NotifyRenderViewType(
render_frame_host->GetRoutingID(), GetViewType(web_contents())));
« no previous file with comments | « content/public/browser/child_process_security_policy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698