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

Unified Diff: chrome/browser/ui/libgtkui/print_dialog_gtk.cc

Issue 2824363002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/ui (Closed)
Patch Set: Created 3 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/libgtkui/app_indicator_icon.cc ('k') | chrome/browser/ui/login/login_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtkui/print_dialog_gtk.cc
diff --git a/chrome/browser/ui/libgtkui/print_dialog_gtk.cc b/chrome/browser/ui/libgtkui/print_dialog_gtk.cc
index 9e4a97acda039bf879b88613af418b4c209c986f..8ac31acdbb101bc90305978d4af1ee0ae695c0f4 100644
--- a/chrome/browser/ui/libgtkui/print_dialog_gtk.cc
+++ b/chrome/browser/ui/libgtkui/print_dialog_gtk.cc
@@ -402,7 +402,8 @@ void PrintDialogGtk2::PrintDocument(const printing::MetafilePlayer& metafile,
// No errors, continue printing.
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- base::Bind(&PrintDialogGtk2::SendDocumentToPrinter, this, document_name));
+ base::BindOnce(&PrintDialogGtk2::SendDocumentToPrinter, this,
+ document_name));
}
void PrintDialogGtk2::AddRefToDialog() {
@@ -529,9 +530,9 @@ void PrintDialogGtk2::OnJobCompleted(GtkPrintJob* print_job,
LOG(ERROR) << "Printing failed: " << error->message;
if (print_job)
g_object_unref(print_job);
- BrowserThread::PostTask(
- BrowserThread::FILE, FROM_HERE,
- base::Bind(base::IgnoreResult(&base::DeleteFile), path_to_pdf_, false));
+ BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
+ base::BindOnce(base::IgnoreResult(&base::DeleteFile),
+ path_to_pdf_, false));
// Printing finished. Matches AddRef() in PrintDocument();
Release();
}
« no previous file with comments | « chrome/browser/ui/libgtkui/app_indicator_icon.cc ('k') | chrome/browser/ui/login/login_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698