#include "components/user_education/common/feature_promo_idle_policy.h"
#include "base/time/time.h"
#include "components/user_education/common/feature_promo_session_manager.h"
#include "components/user_education/common/feature_promo_storage_service.h"
#include "components/user_education/common/user_education_features.h"
namespace user_education {
FeaturePromoIdlePolicy::FeaturePromoIdlePolicy()
: … { … }
FeaturePromoIdlePolicy::FeaturePromoIdlePolicy(
base::TimeDelta new_session_idle_time,
base::TimeDelta minimum_valid_session_length)
: … { … }
FeaturePromoIdlePolicy::~FeaturePromoIdlePolicy() = default;
void FeaturePromoIdlePolicy::Init(
const FeaturePromoSessionManager* session_manager,
const FeaturePromoStorageService* storage_service) { … }
bool FeaturePromoIdlePolicy::IsNewSession(
base::Time previous_session_start_time,
base::Time previous_last_active_time,
base::Time most_recent_active_time) const { … }
}