| 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
|
|
|