blob: a3747d25fb76c1ecc6be67d8a673e0413fe8742a [file] [log] [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/hats/hats_service.h"
HatsService::SurveyMetadata::SurveyMetadata() = default;
HatsService::SurveyMetadata::~SurveyMetadata() = default;
HatsService::SurveyOptions::SurveyOptions(
std::optional<std::u16string> custom_invitation,
std::optional<messages::MessageIdentifier> message_identifier)
: custom_invitation(custom_invitation),
message_identifier(message_identifier) {}
HatsService::SurveyOptions::SurveyOptions(const SurveyOptions& other) = default;
HatsService::SurveyOptions::~SurveyOptions() = default;
HatsService::HatsService(Profile* profile) : profile_(profile) {
hats::GetActiveSurveyConfigs(survey_configs_by_triggers_);
}
HatsService::~HatsService() = default;