Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(902)

Unified Diff: webkit/support/webkit_support.cc

Issue 11595003: webkit: Update the calls from RunAllPending() to RunUntilIdle(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/support/webkit_support.cc
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc
index 04a6fbbe7d430e4547dc993ca4115fd544fab99d..94a1c8f57c25abeed4025009c7bf7ff959bcdb32 100644
--- a/webkit/support/webkit_support.cc
+++ b/webkit/support/webkit_support.cc
@@ -362,7 +362,7 @@ void SetUpTestEnvironmentForUnitTests(
void TearDownTestEnvironment() {
// Flush any remaining messages before we kill ourselves.
// http://code.google.com/p/chromium/issues/detail?id=9500
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
BeforeShutdown();
if (RunningOnValgrind())
@@ -562,7 +562,7 @@ void QuitMessageLoopNow() {
}
void RunAllPendingMessages() {
- MessageLoop::current()->RunAllPending();
+ MessageLoop::current()->RunUntilIdle();
}
bool MessageLoopNestableTasksAllowed() {
@@ -576,7 +576,7 @@ void MessageLoopSetNestableTasksAllowed(bool allowed) {
void DispatchMessageLoop() {
MessageLoop* current = MessageLoop::current();
MessageLoop::ScopedNestableTaskAllower allow(current);
- current->RunAllPending();
+ current->RunUntilIdle();
}
WebDevToolsAgentClient::WebKitClientMessageLoop* CreateDevToolsMessageLoop() {
« no previous file with comments | « webkit/quota/quota_temporary_storage_evictor_unittest.cc ('k') | webkit/tools/test_shell/test_shell_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698