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

Unified Diff: chrome/browser/ui/pdf/pdf_tab_helper.cc

Issue 232773008: More removal of GTK code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove base/ so I don't need another stamp. Created 6 years, 8 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 | « chrome/browser/ui/pdf/pdf_tab_helper.h ('k') | chrome/browser/ui/startup/startup_browser_creator_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/pdf/pdf_tab_helper.cc
diff --git a/chrome/browser/ui/pdf/pdf_tab_helper.cc b/chrome/browser/ui/pdf/pdf_tab_helper.cc
index a01b3a43e5859a028a7ebd442d3d01a32c505905..f63ff594f237969c6c2168ecf780e839d9b27ba6 100644
--- a/chrome/browser/ui/pdf/pdf_tab_helper.cc
+++ b/chrome/browser/ui/pdf/pdf_tab_helper.cc
@@ -16,11 +16,6 @@
#include "chrome/common/render_messages.h"
#include "content/public/browser/navigation_details.h"
-#if defined(TOOLKIT_GTK)
-#include "chrome/browser/ui/app_modal_dialogs/javascript_dialog_manager.h"
-#include "content/public/browser/javascript_dialog_manager.h"
-#endif
-
DEFINE_WEB_CONTENTS_USER_DATA_KEY(PDFTabHelper);
PDFTabHelper::PDFTabHelper(content::WebContents* web_contents)
@@ -107,20 +102,5 @@ void PDFTabHelper::OnModalPromptForPassword(const std::string& prompt,
base::Callback<void(bool, const base::string16&)> callback =
base::Bind(&PDFTabHelper::OnModalPromptForPasswordClosed,
base::Unretained(this), reply_message);
-#if !defined(TOOLKIT_GTK)
ShowPDFPasswordDialog(web_contents(), base::UTF8ToUTF16(prompt), callback);
-#else
- // GTK is going away, so it's not worth the effort to create a password dialog
- // for it. Cheat (for now) until the GTK code is removed.
- bool did_suppress_message;
- GetJavaScriptDialogManagerInstance()->RunJavaScriptDialog(
- web_contents(),
- GURL(),
- std::string(),
- content::JAVASCRIPT_MESSAGE_TYPE_PROMPT,
- base::UTF8ToUTF16(prompt),
- base::string16(),
- callback,
- &did_suppress_message);
-#endif // TOOLKIT_GTK
}
« no previous file with comments | « chrome/browser/ui/pdf/pdf_tab_helper.h ('k') | chrome/browser/ui/startup/startup_browser_creator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698