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

Unified Diff: content/browser/devtools/protocol/devtools_protocol_browsertest.cc

Issue 2082343002: Remove calls to deprecated MessageLoop methods in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR Created 4 years, 6 months 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: content/browser/devtools/protocol/devtools_protocol_browsertest.cc
diff --git a/content/browser/devtools/protocol/devtools_protocol_browsertest.cc b/content/browser/devtools/protocol/devtools_protocol_browsertest.cc
index 1a7e764be6542aaaa5ca93444eba4774086d5739..ec22f213f3f851a430a2388391c40a47352e14ed 100644
--- a/content/browser/devtools/protocol/devtools_protocol_browsertest.cc
+++ b/content/browser/devtools/protocol/devtools_protocol_browsertest.cc
@@ -9,6 +9,7 @@
#include "base/command_line.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
+#include "base/run_loop.h"
#include "base/values.h"
#include "build/build_config.h"
#include "content/public/browser/devtools_agent_host.h"
@@ -127,7 +128,7 @@ class DevToolsProtocolTest : public ContentBrowserTest,
// Only run loop if we are not finished yet.
if (in_dispatch_ && wait) {
waiting_for_command_result_id_ = last_sent_id_;
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
in_dispatch_ = false;
}

Powered by Google App Engine
This is Rietveld 408576698