Index: chrome/browser/printing/print_preview_dialog_controller.cc |
diff --git a/chrome/browser/printing/print_preview_dialog_controller.cc b/chrome/browser/printing/print_preview_dialog_controller.cc |
index ad996d32bce4f6e9c9c4c5d7f90ed057a02cd20d..1075f61ad69c8eee5c7be1c1e55a91278903ac22 100644 |
--- a/chrome/browser/printing/print_preview_dialog_controller.cc |
+++ b/chrome/browser/printing/print_preview_dialog_controller.cc |
@@ -52,8 +52,9 @@ |
void EnableInternalPDFPluginForContents(WebContents* preview_dialog) { |
// Always enable the internal PDF plugin for the print preview page. |
- base::FilePath pdf_plugin_path = base::FilePath::FromUTF8Unsafe( |
- ChromeContentClient::kPDFPluginPath); |
+ base::FilePath pdf_plugin_path; |
+ if (!PathService::Get(chrome::FILE_PDF_PLUGIN, &pdf_plugin_path)) |
+ return; |
content::WebPluginInfo pdf_plugin; |
if (!content::PluginService::GetInstance()->GetPluginInfoByPath( |