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

Unified Diff: chrome/renderer/render_view.cc

Issue 1462001: Use internal pdf plugin with --internal-pdf (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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/renderer/render_process_impl.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_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 42799)
+++ chrome/renderer/render_view.cc (working copy)
@@ -3000,6 +3000,11 @@
// In process Pepper plugins must be explicitly enabled.
return NULL;
}
+ } else if (CommandLine::ForCurrentProcess()->
+ HasSwitch(switches::kInternalPDF) &&
+ StartsWithASCII(*mime_type_to_use, "application/pdf", true)) {
+ in_process_plugin = true;
+ use_pepper_host = true;
}
// Check for Native Client modules.
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kInternalNaCl)) {
« no previous file with comments | « chrome/renderer/render_process_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698