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

Unified Diff: components/history/core/browser/history_querying_unittest.cc

Issue 2082333002: Remove calls to deprecated MessageLoop methods in components. (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: components/history/core/browser/history_querying_unittest.cc
diff --git a/components/history/core/browser/history_querying_unittest.cc b/components/history/core/browser/history_querying_unittest.cc
index b3bfbfbc63935a79c56a9c527e07b946a83e888a..b192f1979758270c69e8e0d95e36a7c258f2bf81 100644
--- a/components/history/core/browser/history_querying_unittest.cc
+++ b/components/history/core/browser/history_querying_unittest.cc
@@ -11,6 +11,7 @@
#include "base/files/scoped_temp_dir.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/cancelable_task_tracker.h"
#include "components/history/core/browser/history_database_params.h"
@@ -85,7 +86,7 @@ class HistoryQueryTest : public testing::Test {
base::Unretained(this)),
&tracker_);
// Will go until ...Complete calls Quit.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
results->Swap(&last_query_results_);
}
@@ -185,7 +186,7 @@ class HistoryQueryTest : public testing::Test {
base::MessageLoop::QuitWhenIdleClosure());
history_->Cleanup();
history_.reset();
- base::MessageLoop::current()->Run(); // Wait for the other thread.
+ base::RunLoop().Run(); // Wait for the other thread.
}
}
« no previous file with comments | « components/history/core/browser/history_backend.cc ('k') | components/history/core/browser/history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698