Index: chrome_frame/test/chrome_frame_automation_mock.cc |
diff --git a/chrome_frame/test/chrome_frame_automation_mock.cc b/chrome_frame/test/chrome_frame_automation_mock.cc |
index 4da64bc4be12b5ea72e95697e4fb1367acb566b5..65c34f09c8be5a9ccfa2b12faacd28c4ead9d7a3 100644 |
--- a/chrome_frame/test/chrome_frame_automation_mock.cc |
+++ b/chrome_frame/test/chrome_frame_automation_mock.cc |
@@ -16,7 +16,7 @@ TEST(ChromeFrame, FLAKY_Launch) { |
MessageLoopForUI loop; |
AutomationMockLaunch mock_launch(&loop, kLongWaitTimeout); |
- loop.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask, kLongWaitTimeout); |
+ loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout); |
mock_launch.Navigate("about:blank"); |
loop.RunWithDispatcher(NULL); |
@@ -27,7 +27,7 @@ TEST(ChromeFrame, Navigate) { |
MessageLoopForUI loop; |
AutomationMockNavigate mock_navigate(&loop, kLongWaitTimeout); |
- loop.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask, kLongWaitTimeout); |
+ loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout); |
mock_navigate.NavigateRelativeFile(L"postmessage_basic_frame.html"); |
loop.RunWithDispatcher(NULL); |
@@ -38,7 +38,7 @@ TEST(ChromeFrame, PostMessage) { |
MessageLoopForUI loop; |
AutomationMockPostMessage mock_postmessage(&loop, kLongWaitTimeout); |
- loop.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask, kLongWaitTimeout); |
+ loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout); |
mock_postmessage.NavigateRelativeFile(L"postmessage_basic_frame.html"); |
loop.RunWithDispatcher(NULL); |
@@ -52,7 +52,7 @@ TEST(ChromeFrame, FLAKY_RequestStart) { |
AutomationMockHostNetworkRequestStart mock_request_start(&loop, |
kLongWaitTimeout); |
- loop.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask, kLongWaitTimeout); |
+ loop.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), kLongWaitTimeout); |
mock_request_start.NavigateRelative(L"postmessage_basic_frame.html"); |
loop.RunWithDispatcher(NULL); |