#include "base/bind.h"
#include "base/prefs/pref_service.h"
-#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
#include "chrome/common/pref_names.h"
+#include "components/bookmarks/core/browser/bookmark_model.h"
BookmarkBarBridge::BookmarkBarBridge(Profile* profile,
// Bookmark loading is async; it may may not have happened yet.
// We will be notified when that happens with the AddObserver() call.
if (model->loaded())
- Loaded(model, false);
+ BookmarkModelLoaded(model, false);
profile_pref_registrar_.Init(profile->GetPrefs());
profile_pref_registrar_.Add(
model_->RemoveObserver(this);
}
-void BookmarkBarBridge::Loaded(BookmarkModel* model, bool ids_reassigned) {
+void BookmarkBarBridge::BookmarkModelLoaded(BookmarkModel* model,
+ bool ids_reassigned) {
[controller_ loaded:model];
}
[controller_ nodeAdded:model parent:parent index:index];
}
-void BookmarkBarBridge::BookmarkNodeRemoved(BookmarkModel* model,
- const BookmarkNode* parent,
- int old_index,
- const BookmarkNode* node) {
+void BookmarkBarBridge::BookmarkNodeRemoved(
+ BookmarkModel* model,
+ const BookmarkNode* parent,
+ int old_index,
+ const BookmarkNode* node,
+ const std::set<GURL>& removed_urls) {
if (!batch_mode_)
[controller_ nodeRemoved:model parent:parent index:old_index];
}
-void BookmarkBarBridge::BookmarkAllNodesRemoved(BookmarkModel* model) {
+void BookmarkBarBridge::BookmarkAllNodesRemoved(
+ BookmarkModel* model,
+ const std::set<GURL>& removed_urls) {
[controller_ loaded:model];
}