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

Unified Diff: chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc

Issue 477263003: pdf: Create a separate component for using the pdf pepper plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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/ui/views/location_bar/open_pdf_in_reader_view.cc
diff --git a/chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc b/chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc
index e627b243f5ba91d0499bbc707b9bd64f50d3140c..67aa98e88ad8596ede8871d84f6eb882a7dc2d1b 100644
--- a/chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc
+++ b/chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.cc
@@ -4,8 +4,9 @@
#include "chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.h"
-#include "chrome/browser/ui/pdf/pdf_tab_helper.h"
#include "chrome/browser/ui/views/open_pdf_in_reader_bubble_view.h"
+#include "components/pdf/browser/open_pdf_in_reader_prompt_delegate.h"
+#include "components/pdf/browser/pdf_tab_helper.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
#include "ui/accessibility/ax_view_state.h"
@@ -28,7 +29,8 @@ OpenPDFInReaderView::~OpenPDFInReaderView() {
void OpenPDFInReaderView::Update(content::WebContents* web_contents) {
model_ = NULL;
if (web_contents) {
- PDFTabHelper* pdf_tab_helper = PDFTabHelper::FromWebContents(web_contents);
+ pdf::PDFTabHelper* pdf_tab_helper =
+ pdf::PDFTabHelper::FromWebContents(web_contents);
model_ = pdf_tab_helper->open_in_reader_prompt();
}

Powered by Google App Engine
This is Rietveld 408576698