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

Unified Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc

Issue 393953010: [SyncFS] Migrate version management from MDDB to index classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months 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: chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc b/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
index 05048283e322c64ecd8a0125ae3cb35150eebe94..77e7a14d07f6ac600c71be90b03900754817a49a 100644
--- a/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
+++ b/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
@@ -21,6 +21,11 @@
namespace sync_file_system {
namespace drive_backend {
+void WriteVersionInfo(int64 version, leveldb::WriteBatch* batch) {
nhiroki 2014/07/16 04:14:48 PutVersionInfoToBatch(...) ?
peria 2014/07/16 04:26:07 Done.
tzik 2014/07/16 04:35:27 Can this be just PutVersionToBatch?
peria 2014/07/16 04:40:49 Done.
+ DCHECK(batch);
+ batch->Put(kDatabaseVersionKey, base::Int64ToString(version));
+}
+
void PutServiceMetadataToBatch(const ServiceMetadata& service_metadata,
leveldb::WriteBatch* batch) {
if (!batch)

Powered by Google App Engine
This is Rietveld 408576698