Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: chrome/browser/metrics/thread_watcher.cc

Issue 7839003: In Dev and Beta, give 10 mins for shutdown and in (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/thread_watcher.cc
===================================================================
--- chrome/browser/metrics/thread_watcher.cc (revision 99768)
+++ chrome/browser/metrics/thread_watcher.cc (working copy)
@@ -727,6 +727,14 @@
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();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698