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

Unified Diff: printing/printing_context_system_dialog_win.cc

Issue 932543003: Remove unused code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mon Feb 23 10:34:33 PST 2015 Created 5 years, 10 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 | « printing/printing_context_system_dialog_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_system_dialog_win.cc
diff --git a/printing/printing_context_system_dialog_win.cc b/printing/printing_context_system_dialog_win.cc
index b89f1a4e469ac89ca10b34942a95f8fd35a21010..e67ae3bf839f003d036e24e8b7b58097b30868ff 100644
--- a/printing/printing_context_system_dialog_win.cc
+++ b/printing/printing_context_system_dialog_win.cc
@@ -13,7 +13,7 @@
namespace printing {
PrintingContextSytemDialogWin::PrintingContextSytemDialogWin(Delegate* delegate)
- : PrintingContextWin(delegate), dialog_box_(NULL) {
+ : PrintingContextWin(delegate) {
}
PrintingContextSytemDialogWin::~PrintingContextSytemDialogWin() {
@@ -25,7 +25,6 @@ void PrintingContextSytemDialogWin::AskUserForSettings(
bool is_scripted,
const PrintSettingsCallback& callback) {
DCHECK(!in_print_job_);
- dialog_box_dismissed_ = false;
HWND window = GetRootWindow(delegate_->GetParentView());
DCHECK(window);
@@ -76,14 +75,6 @@ void PrintingContextSytemDialogWin::AskUserForSettings(
callback.Run(ParseDialogResultEx(dialog_options));
}
-void PrintingContextSytemDialogWin::Cancel() {
- PrintingContextWin::Cancel();
- if (dialog_box_) {
- DestroyWindow(dialog_box_);
- dialog_box_dismissed_ = true;
- }
-}
-
HRESULT PrintingContextSytemDialogWin::ShowPrintDialog(PRINTDLGEX* options) {
// Runs always on the UI thread.
static bool is_dialog_shown = false;
« no previous file with comments | « printing/printing_context_system_dialog_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698