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

Unified Diff: sync/syncable/model_type.cc

Issue 1226213002: Sync: Support nodes with implicit permanent folders: Node Browser and out-of-order loading from DB (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed memory leak Created 5 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: sync/syncable/model_type.cc
diff --git a/sync/syncable/model_type.cc b/sync/syncable/model_type.cc
index 602582beb2f2cc9dfebb410392fbedd0de2d1b9d..113480332bde54c532b0ec9f085c03b07fa1ab4d 100644
--- a/sync/syncable/model_type.cc
+++ b/sync/syncable/model_type.cc
@@ -1216,4 +1216,12 @@ bool IsTypeWithClientGeneratedRoot(ModelType model_type) {
!IsTypeWithServerGeneratedRoot(model_type);
}
+bool TypeSupportsHierarchy(ModelType model_type) {
+ return model_type == BOOKMARKS;
Nicolas Zea 2015/07/09 20:36:34 should this include TOP_LEVEL_FOLDER?
stanisc 2015/07/09 21:45:16 Perhaps. Is TOP_LEVEL_FOLDER type actually used ot
stanisc 2015/07/09 23:59:27 Added TODO. Adding TOP_LEVEL_FOLDER might affect t
+}
+
+bool TypeSupportsOrdering(ModelType model_type) {
+ return model_type == BOOKMARKS;
+}
+
} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698