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

Unified Diff: chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc

Issue 2825003002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/{a,b,c,d,e,f,g}* (Closed)
Patch Set: split rest of changes to 3 CLs 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/custom_handlers/protocol_handler_registry_unittest.cc
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc b/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
index 618ec4e6317ba24d212ee608892e29d4f174bee0..db63b7213998a7af3712f059e48f72babef2a829 100644
--- a/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
+++ b/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
@@ -54,11 +54,9 @@ void AssertIntercepted(
const GURL& url,
net::URLRequestJobFactory* interceptor) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- BrowserThread::PostTask(BrowserThread::IO,
- FROM_HERE,
- base::Bind(AssertInterceptedIO,
- url,
- base::Unretained(interceptor)));
+ BrowserThread::PostTask(
+ BrowserThread::IO, FROM_HERE,
+ base::BindOnce(AssertInterceptedIO, url, base::Unretained(interceptor)));
base::RunLoop().RunUntilIdle();
}
@@ -113,12 +111,9 @@ void AssertWillHandle(
bool expected,
ProtocolHandlerRegistry::JobInterceptorFactory* interceptor) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- BrowserThread::PostTask(BrowserThread::IO,
- FROM_HERE,
- base::Bind(AssertWillHandleIO,
- scheme,
- expected,
- base::Unretained(interceptor)));
+ BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
+ base::BindOnce(AssertWillHandleIO, scheme, expected,
+ base::Unretained(interceptor)));
base::RunLoop().RunUntilIdle();
}
« no previous file with comments | « chrome/browser/custom_handlers/protocol_handler_registry.cc ('k') | chrome/browser/data_usage/tab_id_annotator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698