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

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

Issue 1125113002: Remove the unused parts of PPB_PDF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pdf-delete-pdf
Patch Set: Created 5 years, 7 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: 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 59a17a88180cdf4471062aad0d4b028c3b598116..b1b8cd146b39053086a820b911ac5533fd5b0750 100644
--- a/components/pdf/browser/pdf_web_contents_helper.cc
+++ b/components/pdf/browser/pdf_web_contents_helper.cc
@@ -48,8 +48,6 @@ bool PDFWebContentsHelper::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(PDFHostMsg_PDFSaveURLAs, OnSaveURLAs)
IPC_MESSAGE_HANDLER(PDFHostMsg_PDFUpdateContentRestrictions,
OnUpdateContentRestrictions)
- IPC_MESSAGE_HANDLER_DELAY_REPLY(PDFHostMsg_PDFModalPromptForPassword,
- OnModalPromptForPassword)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -84,24 +82,4 @@ void PDFWebContentsHelper::OnUpdateContentRestrictions(
client_->UpdateContentRestrictions(web_contents(), content_restrictions);
}
-void PDFWebContentsHelper::OnModalPromptForPasswordClosed(
- IPC::Message* reply_message,
- bool success,
- const base::string16& actual_value) {
- PDFHostMsg_PDFModalPromptForPassword::WriteReplyParams(
- reply_message, base::UTF16ToUTF8(actual_value));
- Send(reply_message);
-}
-
-void PDFWebContentsHelper::OnModalPromptForPassword(
- const std::string& prompt,
- IPC::Message* reply_message) {
- base::Callback<void(bool, const base::string16&)> callback =
- base::Bind(&PDFWebContentsHelper::OnModalPromptForPasswordClosed,
- base::Unretained(this),
- reply_message);
- client_->OnShowPDFPasswordDialog(
- web_contents(), base::UTF8ToUTF16(prompt), callback);
-}
-
} // namespace pdf
« no previous file with comments | « components/pdf/browser/pdf_web_contents_helper.h ('k') | components/pdf/browser/pdf_web_contents_helper_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698