Index: webkit/glue/webkit_glue_unittest.cc |
diff --git a/webkit/glue/webkit_glue_unittest.cc b/webkit/glue/webkit_glue_unittest.cc |
index 3a830cfa044052e502b2049e0cd144b99943b263..fb3a0efb9c9b575d9945b803b995ff115d36df19 100644 |
--- a/webkit/glue/webkit_glue_unittest.cc |
+++ b/webkit/glue/webkit_glue_unittest.cc |
@@ -106,7 +106,7 @@ TEST(WebkitGlueTest, SuspendResumeSharedTimer) { |
platform_support.SuspendSharedTimer(); |
// The above timer would have posted a task which can be processed out of the |
// message loop. |
- MessageLoop::current()->RunAllPending(); |
+ MessageLoop::current()->RunUntilIdle(); |
// Set a mock time after 1 second to simulate timers suspended for 1 second. |
double new_time = base::Time::Now().ToDoubleT() + 1; |
platform_support.set_mock_monotonically_increasing_time(new_time); |