#include "chrome/browser/password_manager/generated_password_leak_detection_pref.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/account_consistency_mode_manager.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/browser/signin/signin_ui_util.h"
#include "chrome/browser/sync/sync_service_factory.h"
#include "chrome/browser/sync/sync_ui_util.h"
#include "chrome/common/extensions/api/settings_private.h"
#include "components/password_manager/core/common/password_manager_pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
#include "components/signin/public/identity_manager/identity_manager.h"
namespace {
bool IsUserAllowedToUseLeakDetection(Profile* profile) { … }
bool IsSafeBrowsingStandard(Profile* profile) { … }
}
settings_api;
const char kGeneratedPasswordLeakDetectionPref[] = …;
GeneratedPasswordLeakDetectionPref::GeneratedPasswordLeakDetectionPref(
Profile* profile)
: … { … }
GeneratedPasswordLeakDetectionPref::~GeneratedPasswordLeakDetectionPref() =
default;
extensions::settings_private::SetPrefResult
GeneratedPasswordLeakDetectionPref::SetPref(const base::Value* value) { … }
settings_api::PrefObject GeneratedPasswordLeakDetectionPref::GetPrefObject()
const { … }
void GeneratedPasswordLeakDetectionPref::OnSourcePreferencesChanged() { … }
void GeneratedPasswordLeakDetectionPref::OnIdentityManagerShutdown(
signin::IdentityManager* identity_manager) { … }
void GeneratedPasswordLeakDetectionPref::OnPrimaryAccountChanged(
const signin::PrimaryAccountChangeEvent& event_details) { … }
void GeneratedPasswordLeakDetectionPref::OnExtendedAccountInfoUpdated(
const AccountInfo& info) { … }
void GeneratedPasswordLeakDetectionPref::OnExtendedAccountInfoRemoved(
const AccountInfo& info) { … }
void GeneratedPasswordLeakDetectionPref::OnStateChanged(
syncer::SyncService* sync) { … }
void GeneratedPasswordLeakDetectionPref::OnSyncCycleCompleted(
syncer::SyncService* sync) { … }
void GeneratedPasswordLeakDetectionPref::OnSyncShutdown(
syncer::SyncService* sync) { … }