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

Unified Diff: chrome/browser/ui/webui/chrome_web_ui_data_source.cc

Issue 7566049: Add content-security-policy directive to print-preview pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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/browser/ui/webui/chrome_web_ui_data_source.cc
===================================================================
--- chrome/browser/ui/webui/chrome_web_ui_data_source.cc (revision 95437)
+++ chrome/browser/ui/webui/chrome_web_ui_data_source.cc (working copy)
@@ -33,6 +33,9 @@
if (EndsWith(path, ".js", false))
return "application/javascript";
+ if (EndsWith(path, ".pdf", false))
+ return "application/pdf";
+
return "text/html";
}
« no previous file with comments | « chrome/browser/resources/print_preview/print_preview.js ('k') | chrome/browser/ui/webui/print_preview_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698