#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "base/no_destructor.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/bookmarks/chrome_bookmark_client.h"
#include "chrome/browser/bookmarks/managed_bookmark_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_selections.h"
#include "chrome/browser/sync/account_bookmark_sync_service_factory.h"
#include "chrome/browser/sync/local_or_syncable_bookmark_sync_service_factory.h"
#include "chrome/browser/undo/bookmark_undo_service_factory.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_utils.h"
#include "components/sync_bookmarks/bookmark_sync_service.h"
#include "components/undo/bookmark_undo_service.h"
#if defined(TOOLKIT_VIEWS)
#include "chrome/browser/bookmarks/bookmark_expanded_state_tracker.h"
#include "chrome/browser/bookmarks/bookmark_expanded_state_tracker_factory.h"
#endif
namespace {
BookmarkModel;
std::unique_ptr<KeyedService> BuildBookmarkModel(
content::BrowserContext* context) { … }
}
BookmarkModel* BookmarkModelFactory::GetForBrowserContext(
content::BrowserContext* context) { … }
BookmarkModel* BookmarkModelFactory::GetForBrowserContextIfExists(
content::BrowserContext* context) { … }
BookmarkModelFactory* BookmarkModelFactory::GetInstance() { … }
BrowserContextKeyedServiceFactory::TestingFactory
BookmarkModelFactory::GetDefaultFactory() { … }
BookmarkModelFactory::BookmarkModelFactory()
: … { … }
BookmarkModelFactory::~BookmarkModelFactory() = default;
std::unique_ptr<KeyedService>
BookmarkModelFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }
void BookmarkModelFactory::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) { … }
bool BookmarkModelFactory::ServiceIsNULLWhileTesting() const { … }