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

Unified Diff: chrome/renderer/render_thread.cc

Issue 6240010: retry r71405: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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/common/chrome_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_thread.cc
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index a80fc7bd707f18a8789eb3e84c7fa7c55299765e..fd55fe8cab83dad6a00d4585b6ac1167f9ebfb81 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -864,12 +864,7 @@ void RenderThread::EnsureWebKitInitialized() {
// also be unable to script anything but themselves (to help limit the damage
// that a corrupt chrome: page could cause).
WebString chrome_ui_scheme(ASCIIToUTF16(chrome::kChromeUIScheme));
- if (command_line.HasSwitch(switches::kNewChromeUISecurityModel)) {
- WebSecurityPolicy::registerURLSchemeAsDisplayIsolated(chrome_ui_scheme);
- } else {
- WebSecurityPolicy::registerURLSchemeAsLocal(chrome_ui_scheme);
- WebSecurityPolicy::registerURLSchemeAsNoAccess(chrome_ui_scheme);
- }
+ WebSecurityPolicy::registerURLSchemeAsDisplayIsolated(chrome_ui_scheme);
// chrome-extension: resources shouldn't trigger insecure content warnings.
WebString extension_scheme(ASCIIToUTF16(chrome::kExtensionScheme));
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698