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

Unified Diff: chrome/browser/sync/test/integration/enable_disable_test.cc

Issue 9185031: Avoid SYNC_CYCLE_CONTINUATION sync cycles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + minor changes Created 8 years, 11 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/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..cce472c1907e4ea90f6f97ff5a25c09a046aea95 100644
--- a/chrome/browser/sync/test/integration/enable_disable_test.cc
+++ b/chrome/browser/sync/test/integration/enable_disable_test.cc
@@ -40,11 +40,11 @@ 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()));
+ DisableNotifications();
akalin 2012/01/20 22:41:51 why was this necessary? i.e. why does setting up
rlarocque 2012/01/20 23:04:56 The problem is that SetupSync() doesn't complete u
akalin 2012/01/20 23:07:24 Okay, if this is a temporary change, add a TODO to
+
const syncable::ModelTypeSet registered_types =
GetClient(0)->service()->GetRegisteredDataTypes();
sync_api::UserShare* user_share = GetClient(0)->service()->GetUserShare();
@@ -73,11 +73,11 @@ 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());
+ DisableNotifications();
akalin 2012/01/20 22:41:51 why was this necessary?
rlarocque 2012/01/20 23:04:56 Same reasoning as above.
akalin 2012/01/20 23:07:24 add todo.
+
const syncable::ModelTypeSet registered_types =
GetClient(0)->service()->GetRegisteredDataTypes();

Powered by Google App Engine
This is Rietveld 408576698