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

Unified Diff: sync/internal_api/write_transaction.cc

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: sync to head 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
« no previous file with comments | « sync/internal_api/sync_manager_impl.cc ('k') | sync/syncable/directory_backing_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/write_transaction.cc
diff --git a/sync/internal_api/write_transaction.cc b/sync/internal_api/write_transaction.cc
index fe11adf6479d435bcc3640fb0002c2f55a163901..cf0f1210af525bd6b8ab09746ec4db2fe245fc30 100644
--- a/sync/internal_api/write_transaction.cc
+++ b/sync/internal_api/write_transaction.cc
@@ -18,6 +18,16 @@ WriteTransaction::WriteTransaction(const tracked_objects::Location& from_here,
share->directory.get());
}
+WriteTransaction::WriteTransaction(const tracked_objects::Location& from_here,
+ UserShare* share,
+ int64* new_model_version)
+ : BaseTransaction(share),
+ transaction_(NULL) {
+ transaction_ = new syncable::WriteTransaction(from_here,
+ share->directory.get(),
+ new_model_version);
+}
+
WriteTransaction::~WriteTransaction() {
delete transaction_;
}
« no previous file with comments | « sync/internal_api/sync_manager_impl.cc ('k') | sync/syncable/directory_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698