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

Unified Diff: chrome/renderer/content_settings_observer.cc

Issue 105723002: Add the scheme chrome-distiller:// and hook up data source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implement as data source instead. Also rebased across thousands of CLs. Created 6 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
Index: chrome/renderer/content_settings_observer.cc
diff --git a/chrome/renderer/content_settings_observer.cc b/chrome/renderer/content_settings_observer.cc
index 62b62381acada6fad49132b3fde003c1355f604f..f211d341dfbba0ea932d65f7721e6dcc8034379b 100644
--- a/chrome/renderer/content_settings_observer.cc
+++ b/chrome/renderer/content_settings_observer.cc
@@ -653,6 +653,9 @@ bool ContentSettingsObserver::IsWhitelistedForContentSettings(
if (EqualsASCII(origin.protocol(), chrome::kChromeDevToolsScheme))
return true; // DevTools UI elements should still work.
+ if (EqualsASCII(origin.protocol(), chrome::kDomDistillerScheme))
nasko 2014/01/16 23:39:12 See the other comment in host_content_settings_map
nyquist 2014/01/22 00:47:58 Removed.
+ return true; // DOM Distiller viewer elements should still work.
+
if (EqualsASCII(origin.protocol(), extensions::kExtensionScheme))
return true;

Powered by Google App Engine
This is Rietveld 408576698