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

Unified Diff: chrome/browser/extensions/component_loader.cc

Issue 899033002: Revert of Combine PDF plugin into the Chromium binary. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/extensions/component_loader.cc
diff --git a/chrome/browser/extensions/component_loader.cc b/chrome/browser/extensions/component_loader.cc
index 2ee48167a4bf1d1f95db2d82d0818b884ecc8c15..3841dba2ef83476e45eb13b9c06b3ad01bfaf427 100644
--- a/chrome/browser/extensions/component_loader.cc
+++ b/chrome/browser/extensions/component_loader.cc
@@ -626,7 +626,12 @@
#endif // defined(GOOGLE_CHROME_BUILD)
#if defined(ENABLE_PLUGINS)
- if (switches::OutOfProcessPdfEnabled()) {
+ base::FilePath pdf_path;
+ content::PluginService* plugin_service =
+ content::PluginService::GetInstance();
+ if (switches::OutOfProcessPdfEnabled() &&
+ PathService::Get(chrome::FILE_PDF_PLUGIN, &pdf_path) &&
+ plugin_service->GetRegisteredPpapiPluginInfo(pdf_path)) {
if (switches::PdfMaterialUIEnabled())
Add(IDR_PDF_MANIFEST_MATERIAL, base::FilePath(FILE_PATH_LITERAL("pdf")));
else
« no previous file with comments | « chrome/browser/chromeos/file_manager/open_with_browser.cc ('k') | chrome/browser/printing/print_preview_dialog_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698