code cleanup

This commit is contained in:
deepak1556 2017-01-22 20:23:42 +05:30
parent de7dcdedba
commit ddc2e0df71
8 changed files with 14 additions and 16 deletions

View file

@ -7,6 +7,7 @@
#include <string>
#include <vector>
#include "atom/browser/ui/webui/pdf_viewer_ui.h"
#include "atom/common/atom_version.h"
#include "atom/common/chrome_version.h"
#include "atom/common/options_switches.h"
@ -115,7 +116,7 @@ void ComputeBuiltInPlugins(std::vector<content::PepperPluginInfo>* plugins) {
pdf_info.is_out_of_process = true;
pdf_info.name = "Chromium PDF Viewer";
pdf_info.description = "Portable Document Format";
pdf_info.path = base::FilePath::FromUTF8Unsafe("internal-pdf-viewer");
pdf_info.path = base::FilePath::FromUTF8Unsafe(PdfViewerUI::kOrigin);
content::WebPluginMimeType pdf_mime_type("application/x-google-chrome-pdf",
"pdf", "Portable Document Format");
pdf_info.mime_types.push_back(pdf_mime_type);