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

Unified Diff: chrome/service/gaia/service_gaia_authenticator.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/printer_job_handler.cc ('k') | chrome/service/service_utility_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/gaia/service_gaia_authenticator.cc
diff --git a/chrome/service/gaia/service_gaia_authenticator.cc b/chrome/service/gaia/service_gaia_authenticator.cc
index 596772925ef19e58cb3cc714fe66af5e7e39fb23..a77f224f46c247176ba6fbf1e709a3dd66b38185 100644
--- a/chrome/service/gaia/service_gaia_authenticator.cc
+++ b/chrome/service/gaia/service_gaia_authenticator.cc
@@ -4,6 +4,7 @@
#include "chrome/service/gaia/service_gaia_authenticator.h"
+#include "base/bind.h"
#include "base/message_loop_proxy.h"
#include "chrome/service/net/service_url_request_context.h"
#include "chrome/service/service_process.h"
@@ -31,8 +32,7 @@ bool ServiceGaiaAuthenticator::Post(const GURL& url,
DCHECK(io_message_loop_proxy_);
io_message_loop_proxy_->PostTask(
FROM_HERE,
- NewRunnableMethod(this, &ServiceGaiaAuthenticator::DoPost, url,
- post_body));
+ base::Bind(&ServiceGaiaAuthenticator::DoPost, this, url, post_body));
// TODO(sanjeevr): Waiting here until the network request completes is not
// desirable. We need to change Post to be asynchronous.
// Block until network request completes. See OnURLFetchComplete.
« no previous file with comments | « chrome/service/cloud_print/printer_job_handler.cc ('k') | chrome/service/service_utility_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698