summaryrefslogtreecommitdiffstats
path: root/chrome/browser/child_process_security_policy.cc
diff options
context:
space:
mode:
authorpodivilov@chromium.org <podivilov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-22 09:28:43 +0000
committerpodivilov@chromium.org <podivilov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-22 09:28:43 +0000
commit27c790d4c60ac6a2f7ca445e7946884c450f1c53 (patch)
tree0620d3b15d510bb35c71fd5c3896d6c69515e7d1 /chrome/browser/child_process_security_policy.cc
parent0192f41151d4d34576da444f1d7d1e1fded4f648 (diff)
downloadchromium_src-27c790d4c60ac6a2f7ca445e7946884c450f1c53.zip
chromium_src-27c790d4c60ac6a2f7ca445e7946884c450f1c53.tar.gz
chromium_src-27c790d4c60ac6a2f7ca445e7946884c450f1c53.tar.bz2
Move inspector to "chrome-devtools" scheme
Pages with "chrome" scheme have very narrow permissions (e.g. no access to localStorage). We want inspector page to have the same permissions as usual page. Review URL: http://codereview.chromium.org/3838005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/child_process_security_policy.cc')
-rw-r--r--chrome/browser/child_process_security_policy.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/chrome/browser/child_process_security_policy.cc b/chrome/browser/child_process_security_policy.cc
index 67b8a7c..0aed464 100644
--- a/chrome/browser/child_process_security_policy.cc
+++ b/chrome/browser/child_process_security_policy.cc
@@ -273,12 +273,6 @@ void ChildProcessSecurityPolicy::GrantScheme(int renderer_id,
state->second->GrantScheme(scheme);
}
-void ChildProcessSecurityPolicy::GrantInspectElement(int renderer_id) {
- // The inspector is served from a chrome: URL. In order to run the
- // inspector, the renderer needs to be able to load chrome: URLs.
- GrantScheme(renderer_id, chrome::kChromeUIScheme);
-}
-
void ChildProcessSecurityPolicy::GrantDOMUIBindings(int renderer_id) {
AutoLock lock(lock_);