This source file includes following definitions.
- BookmarkModelChanged
- BookmarkModelBeingDeleted
#include "chrome/browser/profiles/bookmark_model_loaded_observer.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
BookmarkModelLoadedObserver::BookmarkModelLoadedObserver(Profile* profile)
: profile_(profile) {
}
void BookmarkModelLoadedObserver::BookmarkModelChanged() {
}
void BookmarkModelLoadedObserver::BookmarkModelLoaded(BookmarkModel* model,
bool ids_reassigned) {
ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile_);
model->RemoveObserver(this);
delete this;
}
void BookmarkModelLoadedObserver::BookmarkModelBeingDeleted(
BookmarkModel* model) {
model->RemoveObserver(this);
delete this;
}