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

Unified Diff: gpu/tools/compositor_model_bench/compositor_model_bench.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR Created 4 years, 4 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: gpu/tools/compositor_model_bench/compositor_model_bench.cc
diff --git a/gpu/tools/compositor_model_bench/compositor_model_bench.cc b/gpu/tools/compositor_model_bench/compositor_model_bench.cc
index 4b7042ab27767c2dc84f184ea553758abfe40da4..60e18c848002d9dcd396d38b33e9363b84909c8c 100644
--- a/gpu/tools/compositor_model_bench/compositor_model_bench.cc
+++ b/gpu/tools/compositor_model_bench/compositor_model_bench.cc
@@ -30,6 +30,7 @@
#include "base/files/file_util.h"
#include "base/location.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
@@ -122,7 +123,7 @@ class Simulator {
loop.task_runner()->PostTask(
FROM_HERE,
base::Bind(&Simulator::ProcessEvents, weak_factory_.GetWeakPtr()));
- loop.Run();
+ base::RunLoop().Run();
}
void ProcessEvents() {

Powered by Google App Engine
This is Rietveld 408576698