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

Unified Diff: chrome/browser/sync/glue/bookmark_model_associator.cc

Issue 2867036: sync: Remove unused function ChromeModelHasUserCreatedNodes. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: explicit Created 10 years, 6 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/glue/bookmark_model_associator.cc
diff --git a/chrome/browser/sync/glue/bookmark_model_associator.cc b/chrome/browser/sync/glue/bookmark_model_associator.cc
index 26e50c279003a69994740f02abefca5978f75ea5..fbbf8c34f3769067136e56edf1e8f808093574d4 100644
--- a/chrome/browser/sync/glue/bookmark_model_associator.cc
+++ b/chrome/browser/sync/glue/bookmark_model_associator.cc
@@ -222,16 +222,6 @@ void BookmarkModelAssociator::Disassociate(int64 sync_id) {
dirty_associations_sync_ids_.erase(sync_id);
}
-bool BookmarkModelAssociator::ChromeModelHasUserCreatedNodes(bool* has_nodes) {
- DCHECK(has_nodes);
- BookmarkModel* model = sync_service_->profile()->GetBookmarkModel();
- DCHECK(model->IsLoaded());
-
- *has_nodes = model->GetBookmarkBarNode()->GetChildCount() > 0 ||
- model->other_node()->GetChildCount() > 0;
- return true;
-}
-
bool BookmarkModelAssociator::SyncModelHasUserCreatedNodes(bool* has_nodes) {
DCHECK(has_nodes);
*has_nodes = false;

Powered by Google App Engine
This is Rietveld 408576698