OLD | NEW |
1 // Copyright (c) 2011 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/chromeos/upgrade_detector_chromeos.h" | 5 #include "chrome/browser/chromeos/upgrade_detector_chromeos.h" |
6 | 6 |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
8 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | 8 #include "chromeos/dbus/dbus_thread_manager.h" |
9 | 9 |
10 namespace { | 10 namespace { |
11 | 11 |
12 // How long to wait (each cycle) before checking which severity level we should | 12 // How long to wait (each cycle) before checking which severity level we should |
13 // be at. Once we reach the highest severity, the timer will stop. | 13 // be at. Once we reach the highest severity, the timer will stop. |
14 const int kNotifyCycleTimeMs = 20 * 60 * 1000; // 20 minutes. | 14 const int kNotifyCycleTimeMs = 20 * 60 * 1000; // 20 minutes. |
15 | 15 |
16 } // namespace | 16 } // namespace |
17 | 17 |
18 using chromeos::DBusThreadManager; | 18 using chromeos::DBusThreadManager; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 // static | 83 // static |
84 UpgradeDetectorChromeos* UpgradeDetectorChromeos::GetInstance() { | 84 UpgradeDetectorChromeos* UpgradeDetectorChromeos::GetInstance() { |
85 return Singleton<UpgradeDetectorChromeos>::get(); | 85 return Singleton<UpgradeDetectorChromeos>::get(); |
86 } | 86 } |
87 | 87 |
88 // static | 88 // static |
89 UpgradeDetector* UpgradeDetector::GetInstance() { | 89 UpgradeDetector* UpgradeDetector::GetInstance() { |
90 return UpgradeDetectorChromeos::GetInstance(); | 90 return UpgradeDetectorChromeos::GetInstance(); |
91 } | 91 } |
OLD | NEW |