summaryrefslogtreecommitdiffstats
path: root/sync/internal_api
diff options
context:
space:
mode:
authorskym <skym@chromium.org>2016-02-23 14:11:27 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-23 22:12:52 +0000
commit24820c067cb649a4eee2387eda8761e776a18d63 (patch)
tree9d1218f9bae0a7e998c7ec045f4d904f7f4f3d54 /sync/internal_api
parent9e0e03af41092d8647e4c4125a0b75a78a99cf8b (diff)
downloadchromium_src-24820c067cb649a4eee2387eda8761e776a18d63.zip
chromium_src-24820c067cb649a4eee2387eda8761e776a18d63.tar.gz
chromium_src-24820c067cb649a4eee2387eda8761e776a18d63.tar.bz2
[Sync] Now also check get updates request types before performing sessions garbage collection.
BUG=129654 Review URL: https://codereview.chromium.org/1717383002 Cr-Commit-Position: refs/heads/master@{#377103}
Diffstat (limited to 'sync/internal_api')
-rw-r--r--sync/internal_api/public/sessions/model_neutral_state.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sync/internal_api/public/sessions/model_neutral_state.h b/sync/internal_api/public/sessions/model_neutral_state.h
index a80a10d..91bce88 100644
--- a/sync/internal_api/public/sessions/model_neutral_state.h
+++ b/sync/internal_api/public/sessions/model_neutral_state.h
@@ -21,6 +21,9 @@ struct SYNC_EXPORT ModelNeutralState {
ModelNeutralState();
~ModelNeutralState();
+ // The set of types for which updates were requested from the server.
+ ModelTypeSet get_updates_request_types;
+
// The set of types for which commits were sent to the server.
ModelTypeSet commit_request_types;
@@ -54,7 +57,7 @@ struct SYNC_EXPORT ModelNeutralState {
bool items_committed;
};
-bool HasSyncerError(const ModelNeutralState& state);
+SYNC_EXPORT bool HasSyncerError(const ModelNeutralState& state);
} // namespace sessions
} // namespace syncer