// Copyright 2024 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_USER_EDUCATION_RECENT_SESSION_POLICY_H_ #define CHROME_BROWSER_UI_USER_EDUCATION_RECENT_SESSION_POLICY_H_ #include <optional> #include <utility> #include <vector> #include "base/time/time.h" #include "chrome/browser/user_education/browser_feature_promo_storage_service.h" // Class that defines policy for handling recent sessions. // Allows recording of metrics and possibly modifying promo behavior. class RecentSessionPolicy { … }; // Uses a series of thresholds to determine if this is a high- or low-usage // profile/installation. Default is to follow guidance from UX research, but the // parameters are adjustable via trade study parameters. class RecentSessionPolicyImpl : public RecentSessionPolicy { … }; #endif // CHROME_BROWSER_UI_USER_EDUCATION_RECENT_SESSION_POLICY_H_