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

Unified Diff: chrome/service/cloud_print/print_system_win.cc

Issue 8553002: base::Bind: Convert chrome/service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix. Created 9 years, 1 month 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/service/cloud_print/print_system_cups.cc ('k') | chrome/service/cloud_print/printer_job_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/print_system_win.cc
diff --git a/chrome/service/cloud_print/print_system_win.cc b/chrome/service/cloud_print/print_system_win.cc
index ce52f9959466bf8b88e6eb205b2c1602efa658e4..e61fda256b76ebe7c51d498ad395e2a848802e41 100644
--- a/chrome/service/cloud_print/print_system_win.cc
+++ b/chrome/service/cloud_print/print_system_win.cc
@@ -8,6 +8,7 @@
#include <winspool.h>
#include <xpsprint.h>
+#include "base/bind.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/memory/scoped_ptr.h"
@@ -532,14 +533,9 @@ class PrintSystemWin : public PrintSystem {
gfx::Rect render_area(0, 0, dc_width, dc_height);
g_service_process->io_thread()->message_loop_proxy()->PostTask(
FROM_HERE,
- NewRunnableMethod(
- this,
- &JobSpoolerWin::Core::RenderPDFPagesInSandbox,
- print_data_file_path_,
- render_area,
- printer_dpi,
- page_ranges,
- base::MessageLoopProxy::current()));
+ base::Bind(&JobSpoolerWin::Core::RenderPDFPagesInSandbox, this,
+ print_data_file_path_, render_area, printer_dpi,
+ page_ranges, base::MessageLoopProxy::current()));
}
// Called on the service process IO thread.
void RenderPDFPagesInSandbox(
@@ -659,10 +655,8 @@ class PrintSystemWin : public PrintSystem {
virtual void Start() {
g_service_process->io_thread()->message_loop_proxy()->PostTask(
FROM_HERE,
- NewRunnableMethod(
- this,
- &PrinterCapsHandler::GetPrinterCapsAndDefaultsImpl,
- base::MessageLoopProxy::current()));
+ base::Bind(&PrinterCapsHandler::GetPrinterCapsAndDefaultsImpl, this,
+ base::MessageLoopProxy::current()));
}
virtual void OnChildDied() {
@@ -699,10 +693,8 @@ class PrintSystemWin : public PrintSystem {
} else {
client_message_loop_proxy->PostTask(
FROM_HERE,
- NewRunnableMethod(
- this,
- &PrinterCapsHandler::OnGetPrinterCapsAndDefaultsFailed,
- printer_name_));
+ base::Bind(&PrinterCapsHandler::OnGetPrinterCapsAndDefaultsFailed,
+ this, printer_name_));
}
}
« no previous file with comments | « chrome/service/cloud_print/print_system_cups.cc ('k') | chrome/service/cloud_print/printer_job_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698