30 lines
1.3 KiB
Diff
30 lines
1.3 KiB
Diff
From: Your Name <you@example.com>
|
|
Date: Wed, 28 Dec 2022 15:47:58 +0000
|
|
Subject: WIN enable HighEfficiencyMode by default
|
|
|
|
---
|
|
components/performance_manager/user_tuning/prefs.cc | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/components/performance_manager/user_tuning/prefs.cc b/components/performance_manager/user_tuning/prefs.cc
|
|
--- a/components/performance_manager/user_tuning/prefs.cc
|
|
+++ b/components/performance_manager/user_tuning/prefs.cc
|
|
@@ -35,13 +35,13 @@ const char kManagedTabDiscardingExceptions[] =
|
|
"performance_tuning.tab_discarding.exceptions_managed";
|
|
|
|
void RegisterLocalStatePrefs(PrefRegistrySimple* registry) {
|
|
- registry->RegisterBooleanPref(kHighEfficiencyModeEnabled, false);
|
|
+ registry->RegisterBooleanPref(kHighEfficiencyModeEnabled, true);
|
|
registry->RegisterIntegerPref(
|
|
kHighEfficiencyModeTimeBeforeDiscardInMinutes,
|
|
kDefaultHighEfficiencyModeTimeBeforeDiscardInMinutes);
|
|
registry->RegisterIntegerPref(
|
|
kHighEfficiencyModeState,
|
|
- static_cast<int>(HighEfficiencyModeState::kDisabled));
|
|
+ static_cast<int>(HighEfficiencyModeState::kEnabled));
|
|
registry->RegisterIntegerPref(
|
|
kBatterySaverModeState,
|
|
static_cast<int>(BatterySaverModeState::kEnabledBelowThreshold));
|
|
--
|
|
2.25.1
|