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

Unified Diff: sync/sessions/sync_session.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 | « sync/internal_api/test/test_user_share.cc ('k') | sync/syncable/directory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/sync_session.cc
diff --git a/sync/sessions/sync_session.cc b/sync/sessions/sync_session.cc
index 0732329d14b6ebd768836c12160441c3cf626d4e..f9241d97db5f42e807ee242d8908438afd2181d7 100644
--- a/sync/sessions/sync_session.cc
+++ b/sync/sessions/sync_session.cc
@@ -150,17 +150,9 @@ void SyncSession::RebaseRoutingInfoWithLatest(
SyncSessionSnapshot SyncSession::TakeSnapshot() const {
syncable::Directory* dir = context_->directory();
- bool is_share_useable = true;
- ModelTypeSet initial_sync_ended;
ProgressMarkerMap download_progress_markers;
for (int i = FIRST_REAL_MODEL_TYPE; i < MODEL_TYPE_COUNT; ++i) {
ModelType type(ModelTypeFromInt(i));
- if (routing_info_.count(type) != 0) {
- if (dir->initial_sync_ended_for_type(type))
- initial_sync_ended.Put(type);
- else
- is_share_useable = false;
- }
dir->GetDownloadProgressAsString(type, &download_progress_markers[type]);
}
@@ -171,8 +163,6 @@ SyncSessionSnapshot SyncSession::TakeSnapshot() const {
SyncSessionSnapshot snapshot(
status_controller_->model_neutral_state(),
- is_share_useable,
- initial_sync_ended,
download_progress_markers,
delegate_->IsSyncingCurrentlySilenced(),
status_controller_->num_encryption_conflicts(),
« no previous file with comments | « sync/internal_api/test/test_user_share.cc ('k') | sync/syncable/directory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698