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

Unified Diff: webkit/tools/test_shell/test_shell_devtools_agent.cc

Issue 8692005: Remove usage of obsolete setMessageLoopDispatchHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « webkit/tools/test_shell/test_shell_devtools_agent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell_devtools_agent.cc
diff --git a/webkit/tools/test_shell/test_shell_devtools_agent.cc b/webkit/tools/test_shell/test_shell_devtools_agent.cc
index 836916faa4c7ea5cc4c06b21a93bc394b8a096b7..4604bfc74d5c8c630cdbffdef5daac6f46212bbd 100644
--- a/webkit/tools/test_shell/test_shell_devtools_agent.cc
+++ b/webkit/tools/test_shell/test_shell_devtools_agent.cc
@@ -43,23 +43,11 @@ class WebKitClientMessageLoopImpl
} // namespace
-// static
-void TestShellDevToolsAgent::DispatchMessageLoop() {
- MessageLoop* current = MessageLoop::current();
- bool old_state = current->NestableTasksAllowed();
- current->SetNestableTasksAllowed(true);
- current->RunAllPending();
- current->SetNestableTasksAllowed(old_state);
-}
-
TestShellDevToolsAgent::TestShellDevToolsAgent()
: ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)),
dev_tools_client_(NULL) {
static int dev_tools_agent_counter;
routing_id_ = ++dev_tools_agent_counter;
- if (routing_id_ == 1)
- WebDevToolsAgent::setMessageLoopDispatchHandler(
- &TestShellDevToolsAgent::DispatchMessageLoop);
}
TestShellDevToolsAgent::~TestShellDevToolsAgent() {
« no previous file with comments | « webkit/tools/test_shell/test_shell_devtools_agent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698