| 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();
|
| }
|
|
|
|
|