OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/metrics/thread_watcher.h" | 5 #include "chrome/browser/metrics/thread_watcher.h" |
6 | 6 |
7 #include <math.h> // ceil | 7 #include <math.h> // ceil |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/debug/alias.h" | 11 #include "base/debug/alias.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/string_split.h" | |
14 #include "base/stringprintf.h" | 13 #include "base/stringprintf.h" |
15 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_split.h" |
16 #include "base/strings/string_tokenizer.h" | 16 #include "base/strings/string_tokenizer.h" |
17 #include "base/threading/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "chrome/browser/metrics/metrics_service.h" | 19 #include "chrome/browser/metrics/metrics_service.h" |
20 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
21 #include "chrome/common/chrome_version_info.h" | 21 #include "chrome/common/chrome_version_info.h" |
22 #include "chrome/common/dump_without_crashing.h" | 22 #include "chrome/common/dump_without_crashing.h" |
23 #include "chrome/common/logging_chrome.h" | 23 #include "chrome/common/logging_chrome.h" |
24 | 24 |
25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 | 969 |
970 #if defined(OS_WIN) | 970 #if defined(OS_WIN) |
971 // On Windows XP, give twice the time for shutdown. | 971 // On Windows XP, give twice the time for shutdown. |
972 if (base::win::GetVersion() <= base::win::VERSION_XP) | 972 if (base::win::GetVersion() <= base::win::VERSION_XP) |
973 actual_duration *= 2; | 973 actual_duration *= 2; |
974 #endif | 974 #endif |
975 | 975 |
976 shutdown_watchdog_ = new ShutdownWatchDogThread(actual_duration); | 976 shutdown_watchdog_ = new ShutdownWatchDogThread(actual_duration); |
977 shutdown_watchdog_->Arm(); | 977 shutdown_watchdog_->Arm(); |
978 } | 978 } |
OLD | NEW |