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

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

Issue 11474036: Remove initial_sync_ended bits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another rebase Created 8 years 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
« no previous file with comments | « chrome/browser/sync/test_profile_sync_service.h ('k') | sync/engine/all_status.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ceaa540cfdcc7d848e6d75573a1923f34aaa7b48..978b7ef2c88959973b0b8efbe3937ac23da4b68a 100644
--- a/chrome/browser/sync/test_profile_sync_service.cc
+++ b/chrome/browser/sync/test_profile_sync_service.cc
@@ -133,22 +133,21 @@ void SyncBackendHostForProfileSyncTest
UserShare* user_share = GetUserShare();
Directory* directory = user_share->directory.get();
- if (!directory->initial_sync_ended_for_type(NIGORI)) {
+ if (!directory->InitialSyncEndedForType(NIGORI)) {
syncer::TestUserShare::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)) {
+ if (!directory->InitialSyncEndedForType(DEVICE_INFO)) {
syncer::TestUserShare::CreateRoot(DEVICE_INFO, user_share);
}
- if (!directory->initial_sync_ended_for_type(EXPERIMENTS)) {
+ if (!directory->InitialSyncEndedForType(EXPERIMENTS)) {
syncer::TestUserShare::CreateRoot(EXPERIMENTS, user_share);
}
- SetInitialSyncEndedForAllTypes();
restored_types = syncer::ModelTypeSet::All();
}
@@ -168,17 +167,6 @@ void SyncBackendHostForProfileSyncTest
}
}
-void SyncBackendHostForProfileSyncTest::SetInitialSyncEndedForAllTypes() {
- UserShare* user_share = GetUserShare();
- Directory* directory = user_share->directory.get();
-
- for (int i = syncer::FIRST_REAL_MODEL_TYPE;
- i < syncer::MODEL_TYPE_COUNT; ++i) {
- directory->set_initial_sync_ended_for_type(
- syncer::ModelTypeFromInt(i), true);
- }
-}
-
void SyncBackendHostForProfileSyncTest::EmitOnInvalidatorStateChange(
syncer::InvalidatorState state) {
frontend()->OnInvalidatorStateChange(state);
« no previous file with comments | « chrome/browser/sync/test_profile_sync_service.h ('k') | sync/engine/all_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698