diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 20:37:55 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 20:37:55 +0000 |
commit | fb48b6ef0bda9be8103fe6080837f488e219b89a (patch) | |
tree | 9d91abb9424cd1da202cc227a89e0d6b3424c062 /base/watchdog.cc | |
parent | 46564213965397d01fb87975f3bddd597985fcbf (diff) | |
download | chromium_src-fb48b6ef0bda9be8103fe6080837f488e219b89a.zip chromium_src-fb48b6ef0bda9be8103fe6080837f488e219b89a.tar.gz chromium_src-fb48b6ef0bda9be8103fe6080837f488e219b89a.tar.bz2 |
Reset static data in Watchdog to better isolate the tests.
TEST=none
http://crbug.com/17839
Review URL: http://codereview.chromium.org/160217
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21883 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/watchdog.cc')
-rw-r--r-- | base/watchdog.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/watchdog.cc b/base/watchdog.cc index b254577..d78ec0c 100644 --- a/base/watchdog.cc +++ b/base/watchdog.cc @@ -127,6 +127,13 @@ void Watchdog::ThreadDelegate::SetThreadName() const { } // static +void Watchdog::ResetStaticData() { + AutoLock lock(static_lock_); + last_debugged_alarm_time_ = TimeTicks(); + last_debugged_alarm_delay_ = TimeDelta(); +} + +// static Lock Watchdog::static_lock_; // Lock for access of static data... // static TimeTicks Watchdog::last_debugged_alarm_time_ = TimeTicks(); |