Index: components/browser_sync/profile_sync_service_unittest.cc |
diff --git a/components/browser_sync/profile_sync_service_unittest.cc b/components/browser_sync/profile_sync_service_unittest.cc |
index aaa5d88da290e50a2990c5dd17eb40229d97422e..fc0d17f4356cdd56abf2c413b5ee55c6d9f30ac4 100644 |
--- a/components/browser_sync/profile_sync_service_unittest.cc |
+++ b/components/browser_sync/profile_sync_service_unittest.cc |
@@ -15,6 +15,7 @@ |
#include "base/strings/string_number_conversions.h" |
#include "base/strings/utf_string_conversions.h" |
#include "base/test/scoped_feature_list.h" |
+#include "base/test/scoped_task_environment.h" |
#include "base/test/sequenced_worker_pool_owner.h" |
#include "base/threading/thread_task_runner_handle.h" |
#include "base/values.h" |
@@ -350,7 +351,7 @@ class ProfileSyncServiceTest : public ::testing::Test { |
} |
private: |
- base::MessageLoop message_loop_; |
+ base::test::ScopedTaskEnvironment scoped_task_environment_; |
ProfileSyncServiceBundle profile_sync_service_bundle_; |
std::unique_ptr<ProfileSyncService> service_; |