1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/profiles/bookmark_model_loaded_observer.h"
7 #include "chrome/browser/bookmarks/bookmark_model.h"
8 #include "chrome/browser/sync/profile_sync_service_factory.h"
10 BookmarkModelLoadedObserver::BookmarkModelLoadedObserver(Profile
* profile
)
14 void BookmarkModelLoadedObserver::BookmarkModelChanged() {
17 void BookmarkModelLoadedObserver::BookmarkModelLoaded(BookmarkModel
* model
,
18 bool ids_reassigned
) {
19 // Causes lazy-load if sync is enabled.
20 ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile_
);
21 model
->RemoveObserver(this);
25 void BookmarkModelLoadedObserver::BookmarkModelBeingDeleted(
26 BookmarkModel
* model
) {
27 model
->RemoveObserver(this);