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

Unified Diff: chrome/browser/prerender/prerender_resource_throttle_unittest.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: rebase 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: chrome/browser/prerender/prerender_resource_throttle_unittest.cc
diff --git a/chrome/browser/prerender/prerender_resource_throttle_unittest.cc b/chrome/browser/prerender/prerender_resource_throttle_unittest.cc
index aa7fa9a180b383f3fe49b64d1a0b7b6fde42f027..f4b68e989e085007bc610519549a2003379ad358 100644
--- a/chrome/browser/prerender/prerender_resource_throttle_unittest.cc
+++ b/chrome/browser/prerender/prerender_resource_throttle_unittest.cc
@@ -190,9 +190,7 @@ class PrerenderResourceThrottleTest : public testing::Test {
}
// Runs any tasks queued on either thread.
- void RunEvents() {
- message_loop_.RunUntilIdle();
- }
+ void RunEvents() { base::RunLoop().RunUntilIdle(); }
private:
base::MessageLoopForIO message_loop_;

Powered by Google App Engine
This is Rietveld 408576698