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

Unified Diff: chrome/test/base/testing_profile.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/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index fec64a6f8894e68d13032fd45b5654a7cfd290e8..0302f2571c42fe7ae9921366fadf8d949e0a0db1 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -578,13 +578,13 @@ void TestingProfile::DestroyHistoryService() {
// moving to the next test. Note: if this never terminates, somebody is
// probably leaking a reference to the history backend, so it never calls
// our destroy task.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
// Make sure we don't have any event pending that could disrupt the next
// test.
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
void TestingProfile::CreateBookmarkModel(bool delete_file) {
@@ -867,7 +867,7 @@ void TestingProfile::BlockUntilHistoryProcessesPendingRequests() {
history_service->ScheduleDBTask(
std::unique_ptr<history::HistoryDBTask>(new QuittingHistoryDBTask()),
&tracker);
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
chrome_browser_net::Predictor* TestingProfile::GetNetworkPredictor() {
« no previous file with comments | « chrome/test/base/browser_with_test_window_test.cc ('k') | chrome/utility/image_writer/disk_unmounter_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698