diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-10 00:22:59 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-10 00:22:59 +0000 |
commit | d111e93688a8531eb6f3f48592dfbcb88a9a4fee (patch) | |
tree | a4724635db62762122445e0a18731e37e0957708 /content | |
parent | 2350f60970d2f43c5997fa896cb5f1d170d5d4f1 (diff) | |
download | chromium_src-d111e93688a8531eb6f3f48592dfbcb88a9a4fee.zip chromium_src-d111e93688a8531eb6f3f48592dfbcb88a9a4fee.tar.gz chromium_src-d111e93688a8531eb6f3f48592dfbcb88a9a4fee.tar.bz2 |
Removing MessageLoop::QuitTask() from content/
base/task.h is going away and being replaced by base/bind.h and base/callback.h.
This CL was automatically generated by sed.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8872030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113894 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
19 files changed, 48 insertions, 48 deletions
diff --git a/content/browser/browser_thread_unittest.cc b/content/browser/browser_thread_unittest.cc index fee3fa1..be9e103 100644 --- a/content/browser/browser_thread_unittest.cc +++ b/content/browser/browser_thread_unittest.cc @@ -17,7 +17,7 @@ class BrowserThreadTest : public testing::Test { public: void Release() const { CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); - loop_.PostTask(FROM_HERE, new MessageLoop::QuitTask); + loop_.PostTask(FROM_HERE, MessageLoop::QuitClosure()); } protected: @@ -35,7 +35,7 @@ class BrowserThreadTest : public testing::Test { static void BasicFunction(MessageLoop* message_loop) { CHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); - message_loop->PostTask(FROM_HERE, new MessageLoop::QuitTask); + message_loop->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } static void DoNothing() { @@ -65,7 +65,7 @@ class BrowserThreadTest : public testing::Test { ~DeletedOnFile() { CHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); - message_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } private: diff --git a/content/browser/debugger/devtools_manager_unittest.cc b/content/browser/debugger/devtools_manager_unittest.cc index 2991741..830ce55 100644 --- a/content/browser/debugger/devtools_manager_unittest.cc +++ b/content/browser/debugger/devtools_manager_unittest.cc @@ -195,7 +195,7 @@ TEST_F(DevToolsManagerTest, NoUnresponsiveDialogInInspectedTab) { inspected_rvh->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10)); // Wait long enough for first timeout and see if it fired. MessageLoop::current()->PostDelayedTask(FROM_HERE, - new MessageLoop::QuitTask(), 10); + MessageLoop::QuitClosure(), 10); MessageLoop::current()->Run(); EXPECT_FALSE(delegate.renderer_unresponsive_received()); @@ -205,7 +205,7 @@ TEST_F(DevToolsManagerTest, NoUnresponsiveDialogInInspectedTab) { inspected_rvh->StartHangMonitorTimeout(TimeDelta::FromMilliseconds(10)); // Wait long enough for first timeout and see if it fired. MessageLoop::current()->PostDelayedTask(FROM_HERE, - new MessageLoop::QuitTask(), 10); + MessageLoop::QuitClosure(), 10); MessageLoop::current()->Run(); EXPECT_TRUE(delegate.renderer_unresponsive_received()); diff --git a/content/browser/device_orientation/provider_unittest.cc b/content/browser/device_orientation/provider_unittest.cc index a705ed6..d1b0951 100644 --- a/content/browser/device_orientation/provider_unittest.cc +++ b/content/browser/device_orientation/provider_unittest.cc @@ -45,7 +45,7 @@ class UpdateChecker : public Provider::Observer { --(*expectations_count_ptr_); if (*expectations_count_ptr_ == 0) { - MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } } diff --git a/content/browser/geolocation/geolocation_provider_unittest.cc b/content/browser/geolocation/geolocation_provider_unittest.cc index f606a96..2b899c1 100644 --- a/content/browser/geolocation/geolocation_provider_unittest.cc +++ b/content/browser/geolocation/geolocation_provider_unittest.cc @@ -84,13 +84,13 @@ class StartStopMockLocationProvider : public MockLocationProvider { virtual bool StartProvider(bool high_accuracy) { bool result = MockLocationProvider::StartProvider(high_accuracy); - test_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask); + test_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure()); return result; } virtual void StopProvider() { MockLocationProvider::StopProvider(); - test_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask); + test_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } private: diff --git a/content/browser/idbbindingutilities_browsertest.cc b/content/browser/idbbindingutilities_browsertest.cc index 447fb37..2b34c09 100644 --- a/content/browser/idbbindingutilities_browsertest.cc +++ b/content/browser/idbbindingutilities_browsertest.cc @@ -101,7 +101,7 @@ class IDBKeyPathHelper : public UtilityProcessHost::Client { new UtilityProcessHost(this, BrowserThread::IO); utility_process_host_->StartBatchMode(); BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, - new MessageLoop::QuitTask()); + MessageLoop::QuitClosure()); } void DestroyUtilityProcess() { @@ -115,7 +115,7 @@ class IDBKeyPathHelper : public UtilityProcessHost::Client { utility_process_host_->EndBatchMode(); utility_process_host_ = NULL; BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, - new MessageLoop::QuitTask()); + MessageLoop::QuitClosure()); } void SetExpectedKeys(int expected_id, @@ -196,19 +196,19 @@ class IDBKeyPathHelper : public UtilityProcessHost::Client { } } BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, - new MessageLoop::QuitTask()); + MessageLoop::QuitClosure()); } void OnIDBKeysFromValuesAndKeyPathFailed(int id) { EXPECT_TRUE(value_for_key_path_failed_); BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, - new MessageLoop::QuitTask()); + MessageLoop::QuitClosure()); } void OnInjectIDBKeyFinished(const content::SerializedScriptValue& new_value) { EXPECT_EQ(expected_value_.data(), new_value.data()); BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, - new MessageLoop::QuitTask()); + MessageLoop::QuitClosure()); } diff --git a/content/browser/plugin_service_browsertest.cc b/content/browser/plugin_service_browsertest.cc index bd7cd34..e6752c1 100644 --- a/content/browser/plugin_service_browsertest.cc +++ b/content/browser/plugin_service_browsertest.cc @@ -75,7 +75,7 @@ class MockPluginProcessHostClient : public PluginProcessHost::Client, MOCK_METHOD1(OnMessageReceived, bool(const IPC::Message& message)); void OnChannelConnected(int32 peer_pid) OVERRIDE { BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, - new MessageLoop::QuitTask()); + MessageLoop::QuitClosure()); } MOCK_METHOD0(OnChannelError, void()); MOCK_METHOD0(OnChannelDenied, void()); @@ -152,7 +152,7 @@ void DoNothing() {} void QuitUIMessageLoopFromIOThread() { BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, - new MessageLoop::QuitTask()); + MessageLoop::QuitClosure()); } void OpenChannelAndThenCancel(PluginProcessHost::Client* client) { @@ -280,7 +280,7 @@ class MockCanceledAfterSentPluginProcessHostClient on_sent_plugin_channel_request_called_ = true; host()->CancelSentRequest(this); BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, - new MessageLoop::QuitTask()); + MessageLoop::QuitClosure()); } bool on_sent_plugin_channel_request_called() const { diff --git a/content/browser/renderer_host/media/audio_input_device_manager_unittest.cc b/content/browser/renderer_host/media/audio_input_device_manager_unittest.cc index 18eda04..e36ff92 100644 --- a/content/browser/renderer_host/media/audio_input_device_manager_unittest.cc +++ b/content/browser/renderer_host/media/audio_input_device_manager_unittest.cc @@ -90,7 +90,7 @@ static bool CanRunAudioInputDeviceTests() { } ACTION_P(ExitMessageLoop, message_loop) { - message_loop->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } class AudioInputDeviceManagerTest: public testing::Test { diff --git a/content/browser/renderer_host/media/audio_renderer_host_unittest.cc b/content/browser/renderer_host/media/audio_renderer_host_unittest.cc index eab9675..4d62d35 100644 --- a/content/browser/renderer_host/media/audio_renderer_host_unittest.cc +++ b/content/browser/renderer_host/media/audio_renderer_host_unittest.cc @@ -163,7 +163,7 @@ class MockAudioRendererHost : public AudioRendererHost { }; ACTION_P(QuitMessageLoop, message_loop) { - message_loop->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } class AudioRendererHostTest : public testing::Test { @@ -334,7 +334,7 @@ class AudioRendererHostTest : public testing::Test { // Called on the audio thread. static void PostQuitMessageLoop(MessageLoop* message_loop) { - message_loop->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } // Called on the main thread. diff --git a/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc b/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc index 6673d29..1a11c90 100644 --- a/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc +++ b/content/browser/renderer_host/media/media_stream_dispatcher_host_unittest.cc @@ -104,7 +104,7 @@ class MockMediaStreamDispatcherHost : public MediaStreamDispatcherHost { OnStreamGenerated(msg.routing_id(), request_id, audio_device_list.size(), video_device_list.size()); // Notify that the event have occured. - message_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure()); label_ = label; audio_devices_ = audio_device_list; video_devices_ = video_device_list; @@ -112,7 +112,7 @@ class MockMediaStreamDispatcherHost : public MediaStreamDispatcherHost { void OnStreamGenerationFailed(const IPC::Message& msg, int request_id) { OnStreamGenerationFailed(msg.routing_id(), request_id); - message_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure()); label_= ""; } @@ -121,7 +121,7 @@ class MockMediaStreamDispatcherHost : public MediaStreamDispatcherHost { int index) { OnAudioDeviceFailed(msg.routing_id(), index); audio_devices_.erase(audio_devices_.begin() + index); - message_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } void OnVideoDeviceFailed(const IPC::Message& msg, @@ -129,7 +129,7 @@ class MockMediaStreamDispatcherHost : public MediaStreamDispatcherHost { int index) { OnVideoDeviceFailed(msg.routing_id(), index); video_devices_.erase(video_devices_.begin() + index); - message_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } MessageLoop* message_loop_; @@ -172,7 +172,7 @@ class MediaStreamDispatcherHostTest : public testing::Test { // Called on the VideoCaptureManager thread. static void PostQuitMessageLoop(MessageLoop* message_loop) { - message_loop->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } // Called on the main thread. diff --git a/content/browser/renderer_host/media/video_capture_host_unittest.cc b/content/browser/renderer_host/media/video_capture_host_unittest.cc index f71b2d6..da06442 100644 --- a/content/browser/renderer_host/media/video_capture_host_unittest.cc +++ b/content/browser/renderer_host/media/video_capture_host_unittest.cc @@ -185,7 +185,7 @@ class MockVideoCaptureHost : public VideoCaptureHost { }; ACTION_P(ExitMessageLoop, message_loop) { - message_loop->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } class VideoCaptureHostTest : public testing::Test { @@ -246,7 +246,7 @@ class VideoCaptureHostTest : public testing::Test { // Called on the VideoCaptureManager thread. static void PostQuitMessageLoop(MessageLoop* message_loop) { - message_loop->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } // Called on the main thread. diff --git a/content/browser/renderer_host/media/video_capture_manager_unittest.cc b/content/browser/renderer_host/media/video_capture_manager_unittest.cc index c349523..14f44e3 100644 --- a/content/browser/renderer_host/media/video_capture_manager_unittest.cc +++ b/content/browser/renderer_host/media/video_capture_manager_unittest.cc @@ -99,7 +99,7 @@ class VideoCaptureManagerTest : public testing::Test { // Called on the VideoCaptureManager thread. static void PostQuitMessageLoop(MessageLoop* message_loop) { - message_loop->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } // Called on the main thread. diff --git a/content/browser/renderer_host/render_process_host_browsertest.cc b/content/browser/renderer_host/render_process_host_browsertest.cc index 467dccd..5740395 100644 --- a/content/browser/renderer_host/render_process_host_browsertest.cc +++ b/content/browser/renderer_host/render_process_host_browsertest.cc @@ -32,7 +32,7 @@ int RenderProcessHostTest::RenderProcessHostCount() { } void PostQuit(MessageLoop* loop) { - loop->PostTask(FROM_HERE, new MessageLoop::QuitTask); + loop->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } void DoNothing() {} diff --git a/content/browser/renderer_host/render_widget_host_unittest.cc b/content/browser/renderer_host/render_widget_host_unittest.cc index fd363bb..c2483e2 100644 --- a/content/browser/renderer_host/render_widget_host_unittest.cc +++ b/content/browser/renderer_host/render_widget_host_unittest.cc @@ -726,7 +726,7 @@ TEST_F(RenderWidgetHostTest, DontPostponeHangMonitorTimeout) { // Wait long enough for first timeout and see if it fired. MessageLoop::current()->PostDelayedTask(FROM_HERE, - new MessageLoop::QuitTask(), 10); + MessageLoop::QuitClosure(), 10); MessageLoop::current()->Run(); EXPECT_TRUE(host_->unresponsive_timer_fired()); } @@ -744,7 +744,7 @@ TEST_F(RenderWidgetHostTest, StopAndStartHangMonitorTimeout) { // Wait long enough for first timeout and see if it fired. MessageLoop::current()->PostDelayedTask(FROM_HERE, - new MessageLoop::QuitTask(), 40); + MessageLoop::QuitClosure(), 40); MessageLoop::current()->Run(); EXPECT_TRUE(host_->unresponsive_timer_fired()); } diff --git a/content/browser/tab_contents/navigation_controller_unittest.cc b/content/browser/tab_contents/navigation_controller_unittest.cc index bcd87cb..60dfb25 100644 --- a/content/browser/tab_contents/navigation_controller_unittest.cc +++ b/content/browser/tab_contents/navigation_controller_unittest.cc @@ -2283,7 +2283,7 @@ class NavigationControllerHistoryTest : public NavigationControllerTest { HistoryService* history = profile()->GetHistoryService(Profile::IMPLICIT_ACCESS); if (history) { - history->SetOnBackendDestroyTask(new MessageLoop::QuitTask); + history->SetOnBackendDestroyTask(MessageLoop::QuitClosure()); MessageLoop::current()->Run(); } diff --git a/content/common/net/url_fetcher_impl_unittest.cc b/content/common/net/url_fetcher_impl_unittest.cc index 709b54b..aae975e 100644 --- a/content/common/net/url_fetcher_impl_unittest.cc +++ b/content/common/net/url_fetcher_impl_unittest.cc @@ -124,7 +124,7 @@ void URLFetcherTest::OnURLFetchComplete(const content::URLFetcher* source) { // because the destructor won't necessarily run on the // same thread that CreateFetcher() did. - io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); // If the current message loop is not the IO loop, it will be shut down when // the main loop returns and this thread subsequently goes out of scope. } @@ -206,7 +206,7 @@ class CancelTestURLRequestContext : public TestURLRequestContext { virtual ~CancelTestURLRequestContext() { // The d'tor should execute in the IO thread. Post the quit task to the // current thread. - MessageLoop::current()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } }; @@ -397,7 +397,7 @@ void URLFetcherProtectTest::OnURLFetchComplete( EXPECT_TRUE(source->GetResponseAsString(&data)); EXPECT_FALSE(data.empty()); delete fetcher_; - io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } else { // Now running Overload test. static int count = 0; @@ -444,7 +444,7 @@ void URLFetcherProtectTestPassedThrough::OnURLFetchComplete( } delete fetcher_; - io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } @@ -474,7 +474,7 @@ void URLFetcherBadHTTPSTest::OnURLFetchComplete( // The rest is the same as URLFetcherTest::OnURLFetchComplete. delete fetcher_; - io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } void URLFetcherCancelTest::CreateFetcher(const GURL& url) { @@ -495,7 +495,7 @@ void URLFetcherCancelTest::OnURLFetchComplete( // We should have cancelled the request before completion. ADD_FAILURE(); delete fetcher_; - io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } void URLFetcherCancelTest::CancelRequest() { @@ -522,7 +522,7 @@ void URLFetcherMultipleAttemptTest::OnURLFetchComplete( // because the destructor won't necessarily run on the // same thread that CreateFetcher() did. - io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); // If the current message loop is not the IO loop, it will be shut down when // the main loop returns and this thread subsequently goes out of scope. } @@ -540,7 +540,7 @@ void URLFetcherTempFileTest::OnURLFetchComplete( delete fetcher_; - io_message_loop_proxy()->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + io_message_loop_proxy()->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } TEST_F(URLFetcherTest, SameThreadsTest) { diff --git a/content/renderer/media/webrtc_audio_device_unittest.cc b/content/renderer/media/webrtc_audio_device_unittest.cc index 2457a89..8a7f498 100644 --- a/content/renderer/media/webrtc_audio_device_unittest.cc +++ b/content/renderer/media/webrtc_audio_device_unittest.cc @@ -25,7 +25,7 @@ using testing::StrEq; namespace { ACTION_P(QuitMessageLoop, loop_or_proxy) { - loop_or_proxy->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + loop_or_proxy->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } class AudioUtil : public AudioUtilInterface { @@ -383,7 +383,7 @@ TEST_F(WebRTCAudioDeviceTest, PlayLocalFile) { webrtc::kFileFormatPcm16kHzFile)); message_loop_.PostDelayedTask(FROM_HERE, - new MessageLoop::QuitTask(), + MessageLoop::QuitClosure(), TestTimeouts::action_timeout_ms()); message_loop_.Run(); @@ -442,7 +442,7 @@ TEST_F(WebRTCAudioDeviceTest, FullDuplexAudio) { LOG(INFO) << ">> You should now be able to hear yourself in loopback..."; message_loop_.PostDelayedTask(FROM_HERE, - new MessageLoop::QuitTask(), + MessageLoop::QuitClosure(), TestTimeouts::action_timeout_ms()); message_loop_.Run(); diff --git a/content/renderer/p2p/p2p_transport_impl_unittest.cc b/content/renderer/p2p/p2p_transport_impl_unittest.cc index 29bc804..d9e1d50 100644 --- a/content/renderer/p2p/p2p_transport_impl_unittest.cc +++ b/content/renderer/p2p/p2p_transport_impl_unittest.cc @@ -80,7 +80,7 @@ class UdpChannelTester : public base::RefCountedThreadSafe<UdpChannelTester> { protected: void Done() { done_ = true; - message_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } void DoStart() { @@ -235,7 +235,7 @@ class TcpChannelTester : public base::RefCountedThreadSafe<TcpChannelTester> { protected: void Done() { done_ = true; - message_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } void DoWrite() { @@ -429,7 +429,7 @@ TEST_F(P2PTransportImplTest, SendDataUdp) { scoped_refptr<UdpChannelTester> channel_tester = new UdpChannelTester( &message_loop_, transport1_->GetChannel(), transport2_->GetChannel()); - message_loop_.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask(), + message_loop_.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), TestTimeouts::action_max_timeout_ms()); channel_tester->Start(); @@ -474,7 +474,7 @@ TEST_F(P2PTransportImplTest, SendDataTcp) { &TcpChannelTester::StartRead)) .RetiresOnSaturation(); - message_loop_.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask(), + message_loop_.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), TestTimeouts::action_max_timeout_ms()); channel_tester->Init(); diff --git a/content/test/render_view_test.cc b/content/test/render_view_test.cc index 1cb8fda..7d9427f 100644 --- a/content/test/render_view_test.cc +++ b/content/test/render_view_test.cc @@ -81,7 +81,7 @@ RenderViewTest::~RenderViewTest() { } void RenderViewTest::ProcessPendingMessages() { - msg_loop_.PostTask(FROM_HERE, new MessageLoop::QuitTask()); + msg_loop_.PostTask(FROM_HERE, MessageLoop::QuitClosure()); msg_loop_.Run(); } diff --git a/content/test/webrtc_audio_device_test.cc b/content/test/webrtc_audio_device_test.cc index 420e32c..1bd5225 100644 --- a/content/test/webrtc_audio_device_test.cc +++ b/content/test/webrtc_audio_device_test.cc @@ -90,7 +90,7 @@ class WebRTCMockResourceContext : public content::ResourceContext { }; ACTION_P(QuitMessageLoop, loop_or_proxy) { - loop_or_proxy->PostTask(FROM_HERE, new MessageLoop::QuitTask()); + loop_or_proxy->PostTask(FROM_HERE, MessageLoop::QuitClosure()); } } // end namespace |