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

Unified Diff: chrome/browser/printing/print_dialog_gtk.cc

Issue 8231004: Remaining cleanup (base::Bind): Replacing FileUtilProxy calls with new callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: got it building Created 9 years, 2 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: chrome/browser/printing/print_dialog_gtk.cc
diff --git a/chrome/browser/printing/print_dialog_gtk.cc b/chrome/browser/printing/print_dialog_gtk.cc
index 557fbb4a01765f196e5b433dacfb18d0576bfb0d..7577c076fdbf49329fccc8c0bcc88453d665b2b7 100644
--- a/chrome/browser/printing/print_dialog_gtk.cc
+++ b/chrome/browser/printing/print_dialog_gtk.cc
@@ -13,8 +13,8 @@
#include <string>
#include <vector>
+#include "base/bind.h"
#include "base/file_util.h"
-#include "base/file_util_proxy.h"
#include "base/logging.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/ui/browser_list.h"
@@ -400,11 +400,11 @@ void PrintDialogGtk::OnJobCompleted(GtkPrintJob* print_job, GError* error) {
LOG(ERROR) << "Printing failed: " << error->message;
if (print_job)
g_object_unref(print_job);
- base::FileUtilProxy::Delete(
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
- path_to_pdf_,
- false,
- NULL);
+ BrowserThread::PostTask(
+ BrowserThread::FILE,
+ FROM_HERE,
+ base::IgnoreReturn(base::Callback<bool(void)>(
+ base::Bind(&file_util::Delete, path_to_pdf_, false))));
// Printing finished. Matches AddRef() in PrintDocument();
Release();
}

Powered by Google App Engine
This is Rietveld 408576698