#include "chrome/browser/ui/views/device_signals_consent/consent_dialog_coordinator.h"
#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
#include "base/no_destructor.h"
#include "chrome/browser/browser_features.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_window.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/managed_ui.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/grit/generated_resources.h"
#include "components/device_signals/core/browser/pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/views/controls/label.h"
#include "ui/views/widget/widget.h"
#if !BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ui/profiles/profile_picker.h"
#endif
kDeviceSignalsConsentReceived;
namespace {
std::unique_ptr<ConsentRequester>* GetTestInstanceStorage() { … }
ui::ImageModel GetIcon() { … }
}
std::unique_ptr<ui::DialogModel>
ConsentDialogCoordinator::CreateDeviceSignalsConsentDialogModel() { … }
std::unique_ptr<ConsentRequester> ConsentRequester::CreateConsentRequester(
Profile* profile) { … }
void ConsentRequester::SetConsentRequesterForTest(
std::unique_ptr<ConsentRequester> consent_requester) { … }
ConsentDialogCoordinator::ConsentDialogCoordinator(Browser* browser,
Profile* profile)
: … { … }
ConsentDialogCoordinator::~ConsentDialogCoordinator() { … }
void ConsentDialogCoordinator::RequestConsent(RequestConsentCallback callback) { … }
std::u16string ConsentDialogCoordinator::GetDialogBodyText() { … }
void ConsentDialogCoordinator::Show() { … }
void ConsentDialogCoordinator::OnConsentDialogAccept() { … }
void ConsentDialogCoordinator::OnConsentDialogCancel() { … }
void ConsentDialogCoordinator::OnConsentDialogClose() { … }
void ConsentDialogCoordinator::OnConsentPreferenceUpdated(
RequestConsentCallback callback) { … }