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

Unified Diff: chrome/browser/extensions/activity_log/counting_policy_unittest.cc

Issue 2083363002: Remove calls to deprecated MessageLoop methods in chrome. (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
Index: chrome/browser/extensions/activity_log/counting_policy_unittest.cc
diff --git a/chrome/browser/extensions/activity_log/counting_policy_unittest.cc b/chrome/browser/extensions/activity_log/counting_policy_unittest.cc
index 410c823a3d0268786d59efcc2f76fc042faf1a6a..39b6d5b5951ac7f5fd644ecadfabcd592fa42eda 100644
--- a/chrome/browser/extensions/activity_log/counting_policy_unittest.cc
+++ b/chrome/browser/extensions/activity_log/counting_policy_unittest.cc
@@ -75,7 +75,7 @@ class CountingPolicyTest : public testing::Test {
BrowserThread::PostTaskAndReply(
thread, FROM_HERE, base::Bind(&base::DoNothing),
base::MessageLoop::current()->QuitWhenIdleClosure());
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
// A wrapper function for CheckReadFilteredData, so that we don't need to
@@ -118,7 +118,7 @@ class CountingPolicyTest : public testing::Test {
// Wait for results; either the checker or the timeout callbacks should
// cause the main loop to exit.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
timeout.Cancel();
}

Powered by Google App Engine
This is Rietveld 408576698