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

Unified Diff: components/pdf/browser/pdf_web_contents_helper.cc

Issue 2252573003: Add PDFExtensionTest.DownloadPDFButton Base URL: https://chromium.googlesource.com/chromium/src.git@bug_638087
Patch Set: missing changes Created 4 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
« no previous file with comments | « components/pdf/browser/pdf_web_contents_helper.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/pdf/browser/pdf_web_contents_helper.cc
diff --git a/components/pdf/browser/pdf_web_contents_helper.cc b/components/pdf/browser/pdf_web_contents_helper.cc
index ae931d4eae78087c42e5789eb558fd1159f0f436..94605b0c5745e7f1f8215b37ed38ae4deb9187d0 100644
--- a/components/pdf/browser/pdf_web_contents_helper.cc
+++ b/components/pdf/browser/pdf_web_contents_helper.cc
@@ -41,6 +41,11 @@ void PDFWebContentsHelper::ShowOpenInReaderPrompt(
UpdateLocationBar();
}
+void PDFWebContentsHelper::SetClientForTest(
+ std::unique_ptr<PDFWebContentsHelperClient> client) {
+ client_ = std::move(client);
+}
+
bool PDFWebContentsHelper::OnMessageReceived(
const IPC::Message& message,
content::RenderFrameHost* render_frame_host) {
« no previous file with comments | « components/pdf/browser/pdf_web_contents_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698