summaryrefslogtreecommitdiffstats
path: root/printing/printing_context_win.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-19 01:58:38 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-19 01:58:38 +0000
commitabe4811df1767cc8ebcbc6f819981ea5172caf7c (patch)
treeb58a4a79f842c79cb189ab009e158ed8a99950b6 /printing/printing_context_win.cc
parentcd8b4c7f2791bc845dfb0fb761be9306f2a0f82c (diff)
downloadchromium_src-abe4811df1767cc8ebcbc6f819981ea5172caf7c.zip
chromium_src-abe4811df1767cc8ebcbc6f819981ea5172caf7c.tar.gz
chromium_src-abe4811df1767cc8ebcbc6f819981ea5172caf7c.tar.bz2
base::Bind: Convert PrintingContext::PrintSettingsCallback.
BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8549031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110813 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printing_context_win.cc')
-rw-r--r--printing/printing_context_win.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/printing/printing_context_win.cc b/printing/printing_context_win.cc
index 04b6481..46093e7 100644
--- a/printing/printing_context_win.cc
+++ b/printing/printing_context_win.cc
@@ -213,10 +213,9 @@ PrintingContextWin::~PrintingContextWin() {
ReleaseContext();
}
-void PrintingContextWin::AskUserForSettings(gfx::NativeView view,
- int max_pages,
- bool has_selection,
- PrintSettingsCallback* callback) {
+void PrintingContextWin::AskUserForSettings(
+ gfx::NativeView view, int max_pages, bool has_selection,
+ const PrintSettingsCallback& callback) {
#if !defined(USE_AURA)
DCHECK(!in_print_job_);
dialog_box_dismissed_ = false;
@@ -267,12 +266,11 @@ void PrintingContextWin::AskUserForSettings(gfx::NativeView view,
if ((*print_dialog_func_)(&dialog_options) != S_OK) {
ResetSettings();
- callback->Run(FAILED);
+ callback.Run(FAILED);
}
// TODO(maruel): Support PD_PRINTTOFILE.
- callback->Run(ParseDialogResultEx(dialog_options));
- delete callback;
+ callback.Run(ParseDialogResultEx(dialog_options));
#endif
}