Commit 14aa3274 authored by Takashi SAKAMOTO's avatar Takashi SAKAMOTO Committed by Commit Bot

Fix finch study name of purge-and-suspend-time and max-purge-and-suspend-time.

Bug: 670539
Change-Id: I74b063b3c25e9917194206b3754310d9cdf3d311
Reviewed-on: https://chromium-review.googlesource.com/575740Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Takashi Sakamoto <tasak@google.com>
Cr-Commit-Position: refs/heads/master@{#487423}
parent 093a0f56
...@@ -224,7 +224,7 @@ void TabManager::Start() { ...@@ -224,7 +224,7 @@ void TabManager::Start() {
// in the following way: // in the following way:
// https://docs.google.com/document/d/1hPHkKtXXBTlsZx9s-9U17XC-ofEIzPo9FYbBEc7PPbk/edit?usp=sharing // https://docs.google.com/document/d/1hPHkKtXXBTlsZx9s-9U17XC-ofEIzPo9FYbBEc7PPbk/edit?usp=sharing
std::string purge_and_suspend_time = variations::GetVariationParamValue( std::string purge_and_suspend_time = variations::GetVariationParamValue(
"PurgeAndSuspend", "purge-and-suspend-time"); "PurgeAndSuspendAggressive", "purge-and-suspend-time");
unsigned int min_time_to_purge_sec = 0; unsigned int min_time_to_purge_sec = 0;
if (purge_and_suspend_time.empty() || if (purge_and_suspend_time.empty() ||
!base::StringToUint(purge_and_suspend_time, &min_time_to_purge_sec)) !base::StringToUint(purge_and_suspend_time, &min_time_to_purge_sec))
...@@ -233,7 +233,7 @@ void TabManager::Start() { ...@@ -233,7 +233,7 @@ void TabManager::Start() {
min_time_to_purge_ = base::TimeDelta::FromSeconds(min_time_to_purge_sec); min_time_to_purge_ = base::TimeDelta::FromSeconds(min_time_to_purge_sec);
std::string max_purge_and_suspend_time = variations::GetVariationParamValue( std::string max_purge_and_suspend_time = variations::GetVariationParamValue(
"PurgeAndSuspend", "max-purge-and-suspend-time"); "PurgeAndSuspendAggressive", "max-purge-and-suspend-time");
unsigned int max_time_to_purge_sec = 0; unsigned int max_time_to_purge_sec = 0;
// If max-purge-and-suspend-time is not specified or // If max-purge-and-suspend-time is not specified or
// max-purge-and-suspend-time is not valid (not number or smaller than // max-purge-and-suspend-time is not valid (not number or smaller than
......
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