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

Unified Diff: chrome/browser/extensions/api/declarative/rules_registry_service_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/api/declarative/rules_registry_service_unittest.cc
diff --git a/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc b/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc
index b0c4b93fd74706e6331dc048fcda57c27354ae4a..baa4bc5a364bee881d0da756f03946211e2ec82e 100644
--- a/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc
+++ b/chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/test_browser_thread.h"
#include "extensions/browser/api/declarative/test_rules_registry.h"
@@ -51,7 +52,7 @@ class RulesRegistryServiceTest : public testing::Test {
void TearDown() override {
// Make sure that deletion traits of all registries are executed.
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
protected:
@@ -99,7 +100,7 @@ TEST_F(RulesRegistryServiceTest, TestConstructionAndMultiThreading) {
base::Bind(&VerifyNumberOfRules,
registry_service.GetRulesRegistry(key, "io"), 1));
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
// Test extension uninstalling.
std::unique_ptr<base::DictionaryValue> manifest =
@@ -124,7 +125,7 @@ TEST_F(RulesRegistryServiceTest, TestConstructionAndMultiThreading) {
base::Bind(&VerifyNumberOfRules,
registry_service.GetRulesRegistry(key, "io"), 0));
- message_loop_.RunUntilIdle();
+ base::RunLoop().RunUntilIdle();
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698