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

Unified Diff: chrome/browser/extensions/api/web_navigation/web_navigation_apitest.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/web_navigation/web_navigation_apitest.cc
diff --git a/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc b/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc
index 6e77134949555c36599946f35244e71b5d9dadd0..7ca55aa75e89469fd63c4e55e32d74371925a164 100644
--- a/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc
+++ b/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc
@@ -74,9 +74,9 @@ class TestNavigationListener
void DelayRequestsForURL(const GURL& url) {
if (!content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)) {
content::BrowserThread::PostTask(
- content::BrowserThread::IO,
- FROM_HERE,
- base::Bind(&TestNavigationListener::DelayRequestsForURL, this, url));
+ content::BrowserThread::IO, FROM_HERE,
+ base::BindOnce(&TestNavigationListener::DelayRequestsForURL, this,
+ url));
return;
}
urls_to_delay_.insert(url);
@@ -86,9 +86,8 @@ class TestNavigationListener
void ResumeAll() {
if (!content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)) {
content::BrowserThread::PostTask(
- content::BrowserThread::IO,
- FROM_HERE,
- base::Bind(&TestNavigationListener::ResumeAll, this));
+ content::BrowserThread::IO, FROM_HERE,
+ base::BindOnce(&TestNavigationListener::ResumeAll, this));
return;
}
WeakThrottleList::const_iterator it;
@@ -104,7 +103,7 @@ class TestNavigationListener
if (!content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)) {
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
- base::Bind(&TestNavigationListener::Resume, this, url));
+ base::BindOnce(&TestNavigationListener::Resume, this, url));
return;
}
WeakThrottleList::iterator it;

Powered by Google App Engine
This is Rietveld 408576698