diff options
author | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-11 22:09:54 +0000 |
---|---|---|
committer | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-11 22:09:54 +0000 |
commit | 82f4abc7c4c2a91ce62a56a0c0ae06af0fa51305 (patch) | |
tree | 02955f0781609f84e955b2d80486a3bafd9c58ba /sync/internal_api/read_transaction.cc | |
parent | 7b83f7eadd08a3e5fdebb4aa6a2c6fabecc9cdc4 (diff) | |
download | chromium_src-82f4abc7c4c2a91ce62a56a0c0ae06af0fa51305.zip chromium_src-82f4abc7c4c2a91ce62a56a0c0ae06af0fa51305.tar.gz chromium_src-82f4abc7c4c2a91ce62a56a0c0ae06af0fa51305.tar.bz2 |
[Sync] Notify the datatype of the current context on startup
In order to support context triggered refreshes, the datatype must know
what the current context is at startup to decide whether a refresh must
be performed or not. We will now invoke UpdateDataTypeContext before
MergeDataAndStartSyncing if a valid context exists.
BUG=357368
R=rlarocque@chromium.org
Review URL: https://codereview.chromium.org/233833003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/read_transaction.cc')
-rw-r--r-- | sync/internal_api/read_transaction.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sync/internal_api/read_transaction.cc b/sync/internal_api/read_transaction.cc index 81e5340..ebc56ec 100644 --- a/sync/internal_api/read_transaction.cc +++ b/sync/internal_api/read_transaction.cc @@ -36,8 +36,15 @@ syncable::BaseTransaction* ReadTransaction::GetWrappedTrans() const { return transaction_; } -int64 ReadTransaction::GetModelVersion(ModelType type) { +int64 ReadTransaction::GetModelVersion(ModelType type) const { return transaction_->directory()->GetTransactionVersion(type); } +void ReadTransaction::GetDataTypeContext( + ModelType type, + sync_pb::DataTypeContext* context) const { + return transaction_->directory()->GetDataTypeContext( + transaction_, type, context); +} + } // namespace syncer |