From 91cae259b5ab51d378e36607150ab181452e1008 Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Thu, 10 Jan 2013 14:56:17 +0000 Subject: base: Update the calls from MessageLoop::Quit() to QuitWhenIdle(). Quit() is deprecated and we should switch to QuitWhenIdle(). BUG=131220 R=darin@chromium.org Review URL: https://chromiumcodereview.appspot.com/11794032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176082 0039d316-1c4b-4281-b951-d872f2087c98 --- base/message_pump_glib_unittest.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'base/message_pump_glib_unittest.cc') diff --git a/base/message_pump_glib_unittest.cc b/base/message_pump_glib_unittest.cc index e23cc1e..4b6b6d4 100644 --- a/base/message_pump_glib_unittest.cc +++ b/base/message_pump_glib_unittest.cc @@ -311,7 +311,7 @@ class ConcurrentHelper : public base::RefCounted { --task_count_; } if (task_count_ == 0 && event_count_ == 0) { - MessageLoop::current()->Quit(); + MessageLoop::current()->QuitWhenIdle(); } else { MessageLoop::current()->PostTask( FROM_HERE, base::Bind(&ConcurrentHelper::FromTask, this)); @@ -323,7 +323,7 @@ class ConcurrentHelper : public base::RefCounted { --event_count_; } if (task_count_ == 0 && event_count_ == 0) { - MessageLoop::current()->Quit(); + MessageLoop::current()->QuitWhenIdle(); } else { injector_->AddEventAsTask( 0, base::Bind(&ConcurrentHelper::FromEvent, this)); @@ -353,7 +353,7 @@ TEST_F(MessagePumpGLibTest, TestConcurrentEventPostedTask) { // We use the helper class above. We keep both event and posted task queues // full, the helper verifies that both tasks and events get processed. // If that is not the case, either event_count_ or task_count_ will not get - // to 0, and MessageLoop::Quit() will never be called. + // to 0, and MessageLoop::QuitWhenIdle() will never be called. scoped_refptr helper = new ConcurrentHelper(injector()); // Add 2 events to the queue to make sure it is always full (when we remove @@ -514,7 +514,7 @@ void TestGLibLoopInternal(EventInjector* injector) { ASSERT_EQ(3, task_count); EXPECT_EQ(4, injector->processed_events()); - MessageLoop::current()->Quit(); + MessageLoop::current()->QuitWhenIdle(); } void TestGtkLoopInternal(EventInjector* injector) { @@ -549,7 +549,7 @@ void TestGtkLoopInternal(EventInjector* injector) { ASSERT_EQ(3, task_count); EXPECT_EQ(4, injector->processed_events()); - MessageLoop::current()->Quit(); + MessageLoop::current()->QuitWhenIdle(); } } // namespace -- cgit v1.1