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

Unified Diff: gin/test/file_runner.cc

Issue 2087293002: Remove calls to deprecated MessageLoop methods in gin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « gin/shell/gin_main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/test/file_runner.cc
diff --git a/gin/test/file_runner.cc b/gin/test/file_runner.cc
index 80b556e5a5f286dd9a4e281bbbc8e15723764bbe..e8a1965bbbf7365975bbdf630bd81110afbf8153 100644
--- a/gin/test/file_runner.cc
+++ b/gin/test/file_runner.cc
@@ -7,6 +7,7 @@
#include "base/files/file_util.h"
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
+#include "base/run_loop.h"
#include "gin/array_buffer.h"
#include "gin/converter.h"
#include "gin/modules/console.h"
@@ -76,9 +77,9 @@ void RunTestFromFile(const base::FilePath& path, FileRunnerDelegate* delegate,
runner.Run(source, path.AsUTF8Unsafe());
if (run_until_idle) {
- message_loop.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
} else {
- message_loop.Run();
+ base::RunLoop().Run();
}
v8::Local<v8::Value> result = runner.global()->Get(
« no previous file with comments | « gin/shell/gin_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698