#include "chrome/browser/profiles/profile_key.h"
#include "base/check.h"
#include "build/build_config.h"
#include "components/leveldb_proto/public/proto_database_provider.h"
ProfileKey::ProfileKey(const base::FilePath& path, ProfileKey* original_key)
: … { … }
ProfileKey::~ProfileKey() = default;
ProfileKey* ProfileKey::GetOriginalKey() { … }
PrefService* ProfileKey::GetPrefs() { … }
void ProfileKey::SetPrefs(PrefService* prefs) { … }
leveldb_proto::ProtoDatabaseProvider* ProfileKey::GetProtoDatabaseProvider() { … }
void ProfileKey::SetProtoDatabaseProvider(
leveldb_proto::ProtoDatabaseProvider* db_provider) { … }
ProfileKey* ProfileKey::FromSimpleFactoryKey(SimpleFactoryKey* key) { … }
#if BUILDFLAG(IS_ANDROID)
ProfileKeyAndroid* ProfileKey::GetProfileKeyAndroid() {
if (!profile_key_android_)
profile_key_android_ = std::make_unique<ProfileKeyAndroid>(this);
return profile_key_android_.get();
}
#endif