| 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 cb49c5ff3ab872d063e5c2365d0524489ba231a2..a5a669074ea5f2e21ef49c950bcbfbd7003e9dc9 100644
|
| --- a/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
|
| +++ b/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
|
| @@ -640,7 +640,7 @@ TEST_F(ProtocolHandlerRegistryTest, MAYBE_TestOSRegistrationFailure) {
|
| static void MakeRequest(const GURL& url, ProtocolHandlerRegistry* registry) {
|
| net::URLRequest request(url, NULL);
|
| BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
|
| - new MessageLoop::QuitTask());
|
| + MessageLoop::QuitClosure());
|
| scoped_refptr<net::URLRequestJob> job(registry->MaybeCreateJob(&request));
|
| ASSERT_TRUE(job.get() != NULL);
|
| }
|
| @@ -658,7 +658,7 @@ TEST_F(ProtocolHandlerRegistryTest, TestMaybeCreateTaskWorksFromIOThread) {
|
| static void CheckIsHandled(const std::string& scheme, bool expected,
|
| ProtocolHandlerRegistry* registry) {
|
| BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
|
| - new MessageLoop::QuitTask());
|
| + MessageLoop::QuitClosure());
|
| ASSERT_EQ(expected, registry->IsHandledProtocolIO(scheme));
|
| }
|
|
|
| @@ -724,7 +724,7 @@ TEST_F(ProtocolHandlerRegistryTest, TestClearDefaultGetsPropagatedToIO) {
|
|
|
| static void QuitUILoop() {
|
| BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
|
| - new MessageLoop::QuitTask());
|
| + MessageLoop::QuitClosure());
|
| }
|
|
|
| TEST_F(ProtocolHandlerRegistryTest, TestLoadEnabledGetsPropogatedToIO) {
|
|
|