#include "chrome/browser/ui/performance_controls/memory_saver_opt_in_iph_controller.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/performance_manager/public/user_tuning/user_performance_tuning_manager.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "components/feature_engagement/public/feature_constants.h"
#include "components/performance_manager/public/features.h"
#include "components/performance_manager/public/user_tuning/prefs.h"
#include "components/prefs/pref_service.h"
MemorySaverOptInIPHController::MemorySaverOptInIPHController(Browser* browser)
: … { … }
MemorySaverOptInIPHController::~MemorySaverOptInIPHController() = default;
void MemorySaverOptInIPHController::OnMemoryThresholdReached() { … }
void MemorySaverOptInIPHController::OnTabCountThresholdReached() { … }
void MemorySaverOptInIPHController::OnJankThresholdReached() { … }
void MemorySaverOptInIPHController::MaybeTriggerPromo() { … }