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

Unified Diff: android_webview/browser/test/rendering_test.cc

Issue 2315863002: Remove calls to deprecated MessageLoop methods in android_webview. (Closed)
Patch Set: Created 4 years, 3 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 | « android_webview/browser/test/rendering_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/test/rendering_test.cc
diff --git a/android_webview/browser/test/rendering_test.cc b/android_webview/browser/test/rendering_test.cc
index d32b84b09b437e3919184e20672f2b2a82c5e330..5a941417099ec6e19eb10bf61ef8a7cfa12d0361 100644
--- a/android_webview/browser/test/rendering_test.cc
+++ b/android_webview/browser/test/rendering_test.cc
@@ -94,7 +94,7 @@ void RenderingTest::RunTest() {
ui_task_runner_->PostTask(
FROM_HERE, base::Bind(&RenderingTest::StartTest, base::Unretained(this)));
- message_loop_->Run();
+ run_loop_.Run();
}
void RenderingTest::StartTest() {
@@ -102,14 +102,7 @@ void RenderingTest::StartTest() {
}
void RenderingTest::EndTest() {
- ui_task_runner_->PostTask(
- FROM_HERE,
- base::Bind(&RenderingTest::QuitMessageLoop, base::Unretained(this)));
-}
-
-void RenderingTest::QuitMessageLoop() {
- DCHECK_EQ(base::MessageLoop::current(), message_loop_.get());
- message_loop_->QuitWhenIdle();
+ ui_task_runner_->PostTask(FROM_HERE, run_loop_.QuitWhenIdleClosure());
}
content::SynchronousCompositor* RenderingTest::ActiveCompositor() const {
« no previous file with comments | « android_webview/browser/test/rendering_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698