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

Unified Diff: sync/syncable/entry.cc

Issue 10989063: Changed DB to store node positions as Ordinals. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added SetUpVersion81Database() fn. Created 8 years, 2 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: sync/syncable/entry.cc
diff --git a/sync/syncable/entry.cc b/sync/syncable/entry.cc
index ba64299c7340271cae8ac2e3280b5c40a2ed7256..e56cf71dec793a683a712c6862cabdf4e4ca59b6 100644
--- a/sync/syncable/entry.cc
+++ b/sync/syncable/entry.cc
@@ -6,7 +6,7 @@
#include <iomanip>
-#include "net/base/escape.h"
+#include "base/json/string_escape.h"
#include "sync/syncable/base_transaction.h"
#include "sync/syncable/blob.h"
#include "sync/syncable/directory.h"
@@ -128,10 +128,15 @@ std::ostream& operator<<(std::ostream& os, const Entry& entry) {
}
for ( ; i < PROTO_FIELDS_END; ++i) {
os << g_metas_columns[i].name << ": "
- << net::EscapePath(
+ << base::GetDoubleQuotedJson(
akalin 2012/10/08 21:09:46 use JsonDoubleQuote with put_in_quotes set to fals
kernel->ref(static_cast<ProtoField>(i)).SerializeAsString())
<< ", ";
}
+ for ( ; i < ORDINAL_FIELDS_END; ++i) {
+ os << g_metas_columns[i].name << ": "
+ << kernel->ref(static_cast<OrdinalField>(i)).ToDebugString()
+ << ", ";
+ }
os << "TempFlags: ";
for ( ; i < BIT_TEMPS_END; ++i) {
if (kernel->ref(static_cast<BitTemp>(i)))

Powered by Google App Engine
This is Rietveld 408576698