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

Unified Diff: chrome/service/service_utility_process_host.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/gaia/service_gaia_authenticator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_utility_process_host.cc
diff --git a/chrome/service/service_utility_process_host.cc b/chrome/service/service_utility_process_host.cc
index 387356c768ef8833eca1d54a89b2a1fa310d8814..9b359c369ec910fedb611022b2c279258c3b1159 100644
--- a/chrome/service/service_utility_process_host.cc
+++ b/chrome/service/service_utility_process_host.cc
@@ -4,6 +4,7 @@
#include "chrome/service/service_utility_process_host.h"
+#include "base/bind.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/message_loop.h"
@@ -133,8 +134,7 @@ void ServiceUtilityProcessHost::OnChildDied() {
// If we are yet to receive a reply then notify the client that the
// child died.
client_message_loop_proxy_->PostTask(
- FROM_HERE,
- NewRunnableMethod(client_.get(), &Client::OnChildDied));
+ FROM_HERE, base::Bind(&Client::OnChildDied, client_.get()));
}
// The base class implementation will delete |this|.
ServiceChildProcessHost::OnChildDied();
@@ -183,10 +183,8 @@ void ServiceUtilityProcessHost::OnRenderPDFPagesToMetafileSucceeded(
scratch_metafile_dir_->Take();
client_message_loop_proxy_->PostTask(
FROM_HERE,
- NewRunnableMethod(client_.get(),
- &Client::MetafileAvailable,
- metafile_path_,
- highest_rendered_page_number));
+ base::Bind(&Client::MetafileAvailable, client_.get(), metafile_path_,
+ highest_rendered_page_number));
}
void ServiceUtilityProcessHost::OnRenderPDFPagesToMetafileFailed() {
@@ -194,8 +192,7 @@ void ServiceUtilityProcessHost::OnRenderPDFPagesToMetafileFailed() {
waiting_for_reply_ = false;
client_message_loop_proxy_->PostTask(
FROM_HERE,
- NewRunnableMethod(client_.get(),
- &Client::OnRenderPDFPagesToMetafileFailed));
+ base::Bind(&Client::OnRenderPDFPagesToMetafileFailed, client_.get()));
}
void ServiceUtilityProcessHost::OnGetPrinterCapsAndDefaultsSucceeded(
@@ -205,10 +202,8 @@ void ServiceUtilityProcessHost::OnGetPrinterCapsAndDefaultsSucceeded(
waiting_for_reply_ = false;
client_message_loop_proxy_->PostTask(
FROM_HERE,
- NewRunnableMethod(client_.get(),
- &Client::OnGetPrinterCapsAndDefaultsSucceeded,
- printer_name,
- caps_and_defaults));
+ base::Bind(&Client::OnGetPrinterCapsAndDefaultsSucceeded, client_.get(),
+ printer_name, caps_and_defaults));
}
void ServiceUtilityProcessHost::OnGetPrinterCapsAndDefaultsFailed(
@@ -217,9 +212,8 @@ void ServiceUtilityProcessHost::OnGetPrinterCapsAndDefaultsFailed(
waiting_for_reply_ = false;
client_message_loop_proxy_->PostTask(
FROM_HERE,
- NewRunnableMethod(client_.get(),
- &Client::OnGetPrinterCapsAndDefaultsFailed,
- printer_name));
+ base::Bind(&Client::OnGetPrinterCapsAndDefaultsFailed, client_.get(),
+ printer_name));
}
void ServiceUtilityProcessHost::Client::MetafileAvailable(
« no previous file with comments | « chrome/service/gaia/service_gaia_authenticator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698