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

Unified Diff: chrome/browser/sync/test_profile_sync_service.cc

Issue 10911073: NOT FOR COMMIT: Add DeviceInfo type and ChangeProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Introduce SyncedDeviceTracker (the ChangeProcessor) Created 8 years, 3 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_profile_sync_service.cc
diff --git a/chrome/browser/sync/test_profile_sync_service.cc b/chrome/browser/sync/test_profile_sync_service.cc
index a4efa924fbbd0d4ce2d91fda70ab85d660c79d15..9aa84f635fa8ca9d1db070952d9f98696caf8988 100644
--- a/chrome/browser/sync/test_profile_sync_service.cc
+++ b/chrome/browser/sync/test_profile_sync_service.cc
@@ -25,6 +25,8 @@ using syncer::sessions::SyncSessionSnapshot;
using syncer::sessions::SyncSourceInfo;
using syncer::UserShare;
using syncer::syncable::Directory;
+using syncer::NIGORI;
+using syncer::DEVICE_INFO;
namespace browser_sync {
@@ -118,14 +120,17 @@ void SyncBackendHostForProfileSyncTest
UserShare* user_share = GetUserShare();
Directory* directory = user_share->directory.get();
- if (!directory->initial_sync_ended_for_type(syncer::NIGORI)) {
- ProfileSyncServiceTestHelper::CreateRoot(
- syncer::NIGORI, user_share, &id_factory_);
+ if (!directory->initial_sync_ended_for_type(NIGORI)) {
+ ProfileSyncServiceTestHelper::CreateRoot(NIGORI, user_share);
// A side effect of adding the NIGORI mode (normally done by the
// syncer) is a decryption attempt, which will fail the first time.
}
+ if (!directory->initial_sync_ended_for_type(DEVICE_INFO)) {
+ ProfileSyncServiceTestHelper::CreateRoot(DEVICE_INFO, user_share);
+ }
+
SetInitialSyncEndedForAllTypes();
restored_types = syncer::ModelTypeSet::All();
}

Powered by Google App Engine
This is Rietveld 408576698