Commit 6e2c54e3 authored by rtenneti@chromium.org's avatar rtenneti@chromium.org

In Dev and Beta, give 10 mins for shutdown and in

beta give 20 mins for shutdown.

BUG=95506
TEST=shutdown
R=jar

Review URL: http://codereview.chromium.org/7839003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99804 0039d316-1c4b-4281-b951-d872f2087c98
parent b98f9cf7
......@@ -727,6 +727,14 @@ ShutdownWatcherHelper::~ShutdownWatcherHelper() {
void ShutdownWatcherHelper::Arm(const base::TimeDelta& duration) {
DCHECK(!shutdown_watchdog_);
shutdown_watchdog_ = new ShutdownWatchDogThread(duration);
base::TimeDelta actual_duration = duration;
chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
if (channel == chrome::VersionInfo::CHANNEL_STABLE) {
actual_duration *= 50;
} else if (channel == chrome::VersionInfo::CHANNEL_BETA ||
channel == chrome::VersionInfo::CHANNEL_DEV) {
actual_duration *= 25;
}
shutdown_watchdog_ = new ShutdownWatchDogThread(actual_duration);
shutdown_watchdog_->Arm();
}
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