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

Unified Diff: sync/internal_api/public/write_transaction.h

Issue 11341048: Populate versions on individual nodes in sync model and native bookmark model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tests Created 8 years, 1 month 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: sync/internal_api/public/write_transaction.h
diff --git a/sync/internal_api/public/write_transaction.h b/sync/internal_api/public/write_transaction.h
index df27cad62dd05a48b8d5815b37234bada90e7c18..661e8da6d5ef5023799e64a197170c0ebb5789cf 100644
--- a/sync/internal_api/public/write_transaction.h
+++ b/sync/internal_api/public/write_transaction.h
@@ -30,6 +30,11 @@ class WriteTransaction : public BaseTransaction {
// Start a new read/write transaction.
WriteTransaction(const tracked_objects::Location& from_here,
UserShare* share);
+ // |new_model_version| stores updated model version if model is changed by
+ // the transaction, or -1 if not after transaction is closed. This
+ // constructor is used for model types that support embassy data.
+ WriteTransaction(const tracked_objects::Location& from_here,
+ UserShare* share, int64* new_model_version);
virtual ~WriteTransaction();
// Provide access to the syncable transaction from the API WriteNode.

Powered by Google App Engine
This is Rietveld 408576698