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

Unified Diff: chrome/browser/profile_resetter/profile_resetter_browsertest.cc

Issue 2828663002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/{i,l,m,n,p,r}* (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/profile_resetter/profile_resetter_browsertest.cc
diff --git a/chrome/browser/profile_resetter/profile_resetter_browsertest.cc b/chrome/browser/profile_resetter/profile_resetter_browsertest.cc
index 00dd1c3831ec66b37299b9c497e22126e2c9d7f8..db4c26702dc2ee5848858c2e9df4bdf146024ae0 100644
--- a/chrome/browser/profile_resetter/profile_resetter_browsertest.cc
+++ b/chrome/browser/profile_resetter/profile_resetter_browsertest.cc
@@ -66,10 +66,9 @@ std::string RemoveCookieTester::GetCookie(const std::string& host) {
waiting_callback_ = true;
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&RemoveCookieTester::GetCookieOnIOThread,
- base::Unretained(this),
- base::Unretained(profile_->GetRequestContext()),
- host));
+ base::BindOnce(&RemoveCookieTester::GetCookieOnIOThread,
+ base::Unretained(this),
+ base::Unretained(profile_->GetRequestContext()), host));
BlockUntilNotified();
return last_cookies_;
}
@@ -80,11 +79,9 @@ void RemoveCookieTester::AddCookie(const std::string& host,
waiting_callback_ = true;
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&RemoveCookieTester::SetCookieOnIOThread,
- base::Unretained(this),
- base::Unretained(profile_->GetRequestContext()),
- host,
- definition));
+ base::BindOnce(
+ &RemoveCookieTester::SetCookieOnIOThread, base::Unretained(this),
+ base::Unretained(profile_->GetRequestContext()), host, definition));
BlockUntilNotified();
}
@@ -117,8 +114,8 @@ void RemoveCookieTester::GetCookieCallback(const std::string& cookies) {
if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- base::Bind(&RemoveCookieTester::GetCookieCallback,
- base::Unretained(this), cookies));
+ base::BindOnce(&RemoveCookieTester::GetCookieCallback,
+ base::Unretained(this), cookies));
return;
}
last_cookies_ = cookies;
@@ -129,8 +126,8 @@ void RemoveCookieTester::SetCookieCallback(bool result) {
if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- base::Bind(&RemoveCookieTester::SetCookieCallback,
- base::Unretained(this), result));
+ base::BindOnce(&RemoveCookieTester::SetCookieCallback,
+ base::Unretained(this), result));
return;
}
ASSERT_TRUE(result);

Powered by Google App Engine
This is Rietveld 408576698