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

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: Changed comments 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
« no previous file with comments | « sync/syncable/entry_kernel_unittest.cc ('k') | sync/syncable/parent_child_index.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/model_type.cc
diff --git a/sync/syncable/model_type.cc b/sync/syncable/model_type.cc
index 602582beb2f2cc9dfebb410392fbedd0de2d1b9d..3ef7bac67f48b629cede84a5a5a86ed19dbaed00 100644
--- a/sync/syncable/model_type.cc
+++ b/sync/syncable/model_type.cc
@@ -1216,4 +1216,13 @@ bool IsTypeWithClientGeneratedRoot(ModelType model_type) {
!IsTypeWithServerGeneratedRoot(model_type);
}
+bool TypeSupportsHierarchy(ModelType model_type) {
+ // TODO(stanisc): crbug/438313: Should this also include TOP_LEVEL_FOLDER?
+ return model_type == BOOKMARKS;
+}
+
+bool TypeSupportsOrdering(ModelType model_type) {
+ return model_type == BOOKMARKS;
+}
+
} // namespace syncer
« no previous file with comments | « sync/syncable/entry_kernel_unittest.cc ('k') | sync/syncable/parent_child_index.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698