| Index: chrome/browser/sync/test/integration/single_client_themes_sync_test.cc
|
| diff --git a/chrome/browser/sync/test/integration/single_client_themes_sync_test.cc b/chrome/browser/sync/test/integration/single_client_themes_sync_test.cc
|
| index 816fdc80245257fe0f8d3c114115531bd3091d7e..ce5099f5d290bdf5dafdc0b43329c9cc5098788b 100644
|
| --- a/chrome/browser/sync/test/integration/single_client_themes_sync_test.cc
|
| +++ b/chrome/browser/sync/test/integration/single_client_themes_sync_test.cc
|
| @@ -4,12 +4,11 @@
|
|
|
| #include "base/macros.h"
|
| #include "build/build_config.h"
|
| -#include "chrome/browser/sync/test/integration/sync_integration_test_util.h"
|
| #include "chrome/browser/sync/test/integration/sync_test.h"
|
| #include "chrome/browser/sync/test/integration/themes_helper.h"
|
| +#include "chrome/browser/sync/test/integration/updated_progress_marker_checker.h"
|
| #include "components/browser_sync/profile_sync_service.h"
|
|
|
| -using sync_integration_test_util::AwaitCommitActivityCompletion;
|
| using themes_helper::GetCustomTheme;
|
| using themes_helper::GetThemeID;
|
| using themes_helper::UseCustomTheme;
|
| @@ -43,7 +42,7 @@ IN_PROC_BROWSER_TEST_F(SingleClientThemesSyncTest, CustomTheme) {
|
| ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0)));
|
| ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier()));
|
|
|
| - ASSERT_TRUE(AwaitCommitActivityCompletion(GetSyncService(0)));
|
| + ASSERT_TRUE(UpdatedProgressMarkerChecker(GetSyncService(0)).Wait());
|
|
|
| ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0)));
|
| ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier()));
|
| @@ -62,14 +61,14 @@ IN_PROC_BROWSER_TEST_F(SingleClientThemesSyncTest, NativeTheme) {
|
| ASSERT_FALSE(UsingSystemTheme(GetProfile(0)));
|
| ASSERT_FALSE(UsingSystemTheme(verifier()));
|
|
|
| - ASSERT_TRUE(AwaitCommitActivityCompletion(GetSyncService(0)));
|
| + ASSERT_TRUE(UpdatedProgressMarkerChecker(GetSyncService(0)).Wait());
|
|
|
| UseSystemTheme(GetProfile(0));
|
| UseSystemTheme(verifier());
|
| ASSERT_TRUE(UsingSystemTheme(GetProfile(0)));
|
| ASSERT_TRUE(UsingSystemTheme(verifier()));
|
|
|
| - ASSERT_TRUE(AwaitCommitActivityCompletion(GetSyncService(0)));
|
| + ASSERT_TRUE(UpdatedProgressMarkerChecker(GetSyncService(0)).Wait());
|
|
|
| ASSERT_TRUE(UsingSystemTheme(GetProfile(0)));
|
| ASSERT_TRUE(UsingSystemTheme(verifier()));
|
| @@ -83,14 +82,14 @@ IN_PROC_BROWSER_TEST_F(SingleClientThemesSyncTest, DefaultTheme) {
|
| ASSERT_FALSE(UsingDefaultTheme(GetProfile(0)));
|
| ASSERT_FALSE(UsingDefaultTheme(verifier()));
|
|
|
| - ASSERT_TRUE(AwaitCommitActivityCompletion(GetSyncService(0)));
|
| + ASSERT_TRUE(UpdatedProgressMarkerChecker(GetSyncService(0)).Wait());
|
|
|
| UseDefaultTheme(GetProfile(0));
|
| UseDefaultTheme(verifier());
|
| ASSERT_TRUE(UsingDefaultTheme(GetProfile(0)));
|
| ASSERT_TRUE(UsingDefaultTheme(verifier()));
|
|
|
| - ASSERT_TRUE(AwaitCommitActivityCompletion(GetSyncService(0)));
|
| + ASSERT_TRUE(UpdatedProgressMarkerChecker(GetSyncService(0)).Wait());
|
|
|
| ASSERT_TRUE(UsingDefaultTheme(GetProfile(0)));
|
| ASSERT_TRUE(UsingDefaultTheme(verifier()));
|
|
|