Commit e42ee1f4 authored by Sebastien Marchand's avatar Sebastien Marchand Committed by Commit Bot

[PM] Discard policy - Change the time spent in background requirement

Bug: 1030399
Change-Id: Ia71eab69aba53f6548e48cede43bb5d29f868bc2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2028157
Auto-Submit: Sébastien Marchand <sebmarchand@chromium.org>
Commit-Queue: François Doray <fdoray@chromium.org>
Reviewed-by: default avatarFrançois Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#736608}
parent 903f806a
......@@ -31,7 +31,7 @@ namespace {
// Time during which non visible pages are protected from urgent discarding
// (not on ChromeOS).
constexpr base::TimeDelta kNonVisiblePagesUrgentProtectionTime =
base::TimeDelta::FromSeconds(10);
base::TimeDelta::FromMinutes(10);
#endif
// Time during which a tab cannot be discarded after having played audio.
......
......@@ -186,7 +186,7 @@ void UrgentPageDiscardingPolicyTest::MakePageNodeDiscardable(
page_node->OnMainFrameNavigationCommitted(false, base::TimeTicks::Now(), 42,
kUrl, "text/html");
(*page_node->main_frame_nodes().begin())->OnNavigationCommitted(kUrl, false);
AdvanceClock(base::TimeDelta::FromMinutes(1));
AdvanceClock(base::TimeDelta::FromMinutes(10));
EXPECT_TRUE(policy()->CanUrgentlyDiscardForTesting(page_node));
}
......
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