Index: chrome/browser/sync/test/integration/enable_disable_test.cc |
diff --git a/chrome/browser/sync/test/integration/enable_disable_test.cc b/chrome/browser/sync/test/integration/enable_disable_test.cc |
index dafcbb6a6ea84be9b731de5349413bfb1092d7e1..ed71c255b510d78aa60910dceebf282f53d67183 100644 |
--- a/chrome/browser/sync/test/integration/enable_disable_test.cc |
+++ b/chrome/browser/sync/test/integration/enable_disable_test.cc |
@@ -40,11 +40,14 @@ bool DoesTopLevelNodeExist(sync_api::UserShare* user_share, |
IN_PROC_BROWSER_TEST_F(EnableDisableSingleClientTest, EnableOneAtATime) { |
ASSERT_TRUE(SetupClients()); |
- DisableNotifications(); |
- |
// Setup sync with no enabled types. |
ASSERT_TRUE(GetClient(0)->SetupSync(syncable::ModelTypeSet())); |
+ // TODO(rlarocque, 97780): It should be possible to disable notifications |
+ // before calling SetupSync(). We should move this line back to the top |
+ // of this function when this is supported. |
+ DisableNotifications(); |
+ |
const syncable::ModelTypeSet registered_types = |
GetClient(0)->service()->GetRegisteredDataTypes(); |
sync_api::UserShare* user_share = GetClient(0)->service()->GetUserShare(); |
@@ -73,11 +76,14 @@ IN_PROC_BROWSER_TEST_F(EnableDisableSingleClientTest, EnableOneAtATime) { |
IN_PROC_BROWSER_TEST_F(EnableDisableSingleClientTest, DisableOneAtATime) { |
ASSERT_TRUE(SetupClients()); |
- DisableNotifications(); |
- |
// Setup sync with no disabled types. |
ASSERT_TRUE(GetClient(0)->SetupSync()); |
+ // TODO(rlarocque, 97780): It should be possible to disable notifications |
+ // before calling SetupSync(). We should move this line back to the top |
+ // of this function when this is supported. |
+ DisableNotifications(); |
+ |
const syncable::ModelTypeSet registered_types = |
GetClient(0)->service()->GetRegisteredDataTypes(); |