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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 2458793003: Make the content scheme local (Closed)
Patch Set: Created 4 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
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_content_renderer_client.cc
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index 6f0950ee21f02f21eb09159fc1c96a336dc1c3a6..cf2e4da007a350f5b2148802193871b43df1dac2 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -395,6 +395,8 @@ void ChromeContentRendererClient::RenderThreadStarted() {
#if defined(OS_ANDROID)
WebSecurityPolicy::registerURLSchemeAsAllowedForReferrer(
WebString::fromUTF8(chrome::kAndroidAppScheme));
+ WebSecurityPolicy::registerURLSchemeAsLocal(
+ WebString::fromUTF8(url::kContentScheme));
#endif
// chrome-search: pages should not be accessible by bookmarklets
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698