Commit 9140c552 authored by Dave Tapuska's avatar Dave Tapuska Committed by Commit Bot

Force freezing of non timers in background in all situations.

Desktop has not shipped the freezing feature yet and it explicitly
always enables this state in the finch config. Ensure this is set via
the code now.

The goal of making this change is that mobile and desktop will be
the same in the code (it always was via finch config). But it will
allow in the future to clean up code related to this.

BUG=967431

Change-Id: I774c3f4173acfc8c1d9d0cf61cf1ac9c7722d67c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1631722Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#664763}
parent 4e33f1e4
...@@ -211,14 +211,8 @@ const base::Feature kFreezeBackgroundTabOnNetworkIdle{ ...@@ -211,14 +211,8 @@ const base::Feature kFreezeBackgroundTabOnNetworkIdle{
// Freeze non-timer task queues in background, after allowed grace time. // Freeze non-timer task queues in background, after allowed grace time.
// "stop" is a legacy name. // "stop" is a legacy name.
const base::Feature kStopNonTimersInBackground { const base::Feature kStopNonTimersInBackground{
"stop-non-timers-in-background", "stop-non-timers-in-background", base::FEATURE_ENABLED_BY_DEFAULT};
#if defined(OS_ANDROID)
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
#endif
};
// Enable text snippets in URL fragments. https://crbug.com/919204. // Enable text snippets in URL fragments. https://crbug.com/919204.
const base::Feature kTextFragmentAnchor{"TextFragmentAnchor", const base::Feature kTextFragmentAnchor{"TextFragmentAnchor",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment