diff --git a/atom/browser/ui/webui/pdf_viewer_ui.cc b/atom/browser/ui/webui/pdf_viewer_ui.cc index 402c732c16b8..2d0318729744 100644 --- a/atom/browser/ui/webui/pdf_viewer_ui.cc +++ b/atom/browser/ui/webui/pdf_viewer_ui.cc @@ -61,7 +61,8 @@ class BundledDataSource : public content::URLDataSource { std::string GetMimeType(const std::string& path) const override { std::string filename = PathWithoutParams(path); std::string mime_type; - net::GetMimeTypeFromFile(base::FilePath::FromUTF8Unsafe(filename), &mime_type); + net::GetMimeTypeFromFile( + base::FilePath::FromUTF8Unsafe(filename), &mime_type); return mime_type; } @@ -103,10 +104,6 @@ PdfViewerUI::PdfViewerUI(content::BrowserContext* browser_context, PdfViewerUI::~PdfViewerUI() {} -void PdfViewerUI::RenderViewCreated(content::RenderViewHost* rvh) { - rvh->AllowBindings(content::BINDINGS_POLICY_WEB_UI); -} - bool PdfViewerUI::OnMessageReceived( const IPC::Message& message, content::RenderFrameHost* render_frame_host) { diff --git a/atom/browser/ui/webui/pdf_viewer_ui.h b/atom/browser/ui/webui/pdf_viewer_ui.h index 6e76ca87ab77..d81e12d69bd6 100644 --- a/atom/browser/ui/webui/pdf_viewer_ui.h +++ b/atom/browser/ui/webui/pdf_viewer_ui.h @@ -33,9 +33,6 @@ class PdfViewerUI : public content::WebUIController, const std::string& src); ~PdfViewerUI() override; - // content::WebUIController implementation. - void RenderViewCreated(content::RenderViewHost* rvh) override; - // content::WebContentsObserver: bool OnMessageReceived(const IPC::Message& message, content::RenderFrameHost* render_frame_host) override;