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

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

Issue 8828006: Makes all permanent nodes share the same node class so that visibility (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More tweaks Created 9 years 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 8d3066a06e43eb8944e4813333b7e7eeb6c1bb29..ec9b40b11acf083597307e7b9c70bb285eb11b8c 100644
--- a/chrome/browser/sync/glue/bookmark_model_associator.cc
+++ b/chrome/browser/sync/glue/bookmark_model_associator.cc
@@ -186,11 +186,12 @@ BookmarkModelAssociator::~BookmarkModelAssociator() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
}
-void BookmarkModelAssociator::UpdateMobileNodeVisibility() {
+void BookmarkModelAssociator::UpdatePermanentNodeVisibility() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(bookmark_model_->IsLoaded());
- bookmark_model_->SetMobileFolderVisible(
+ bookmark_model_->SetPermanentNodeVisible(
+ BookmarkNode::MOBILE,
id_map_.find(bookmark_model_->mobile_node()->id()) != id_map_.end());
}
@@ -236,7 +237,7 @@ void BookmarkModelAssociator::Associate(const BookmarkNode* node,
id_map_inverse_[sync_id] = node;
dirty_associations_sync_ids_.insert(sync_id);
PostPersistAssociationsTask();
- UpdateMobileNodeVisibility();
+ UpdatePermanentNodeVisibility();
}
void BookmarkModelAssociator::Disassociate(int64 sync_id) {

Powered by Google App Engine
This is Rietveld 408576698