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

Unified Diff: chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc

Issue 2825963003: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/extensions (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
Index: chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc
diff --git a/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc b/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc
index 99b078dc13ab198f3ba45e877f498b8bdffb7ae5..b1694499e8ac2006ba4b42fa70359e80827d553a 100644
--- a/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc
+++ b/chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc
@@ -94,10 +94,9 @@ GaiaWebAuthFlow::~GaiaWebAuthFlow() {
if (io_helper_) {
content::BrowserThread::PostTask(
- content::BrowserThread::IO,
- FROM_HERE,
- base::Bind(&GaiaWebAuthFlow::IOHelper::Cleanup,
- base::Unretained(io_helper_.release())));
+ content::BrowserThread::IO, FROM_HERE,
+ base::BindOnce(&GaiaWebAuthFlow::IOHelper::Cleanup,
+ base::Unretained(io_helper_.release())));
}
if (web_flow_)
@@ -108,10 +107,9 @@ void GaiaWebAuthFlow::Start() {
io_helper_.reset(new IOHelper(weak_ptr_factory_.GetWeakPtr(),
profile_->GetRequestContext()));
content::BrowserThread::PostTask(
- content::BrowserThread::IO,
- FROM_HERE,
- base::Bind(&GaiaWebAuthFlow::IOHelper::PrepareRequestContext,
- base::Unretained(io_helper_.get())));
+ content::BrowserThread::IO, FROM_HERE,
+ base::BindOnce(&GaiaWebAuthFlow::IOHelper::PrepareRequestContext,
+ base::Unretained(io_helper_.get())));
}
void GaiaWebAuthFlow::StartUberTokenFetch() {
@@ -296,10 +294,9 @@ void GaiaWebAuthFlow::IOHelper::PrepareRequestContext() {
app_http_cache_.get());
content::BrowserThread::PostTask(
- content::BrowserThread::UI,
- FROM_HERE,
- base::Bind(&GaiaWebAuthFlow::StartUberTokenFetch,
- gaia_web_auth_flow_));
+ content::BrowserThread::UI, FROM_HERE,
+ base::BindOnce(&GaiaWebAuthFlow::StartUberTokenFetch,
+ gaia_web_auth_flow_));
}
void GaiaWebAuthFlow::IOHelper::Cleanup() {

Powered by Google App Engine
This is Rietveld 408576698