| 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/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 "chromeos/dbus/dbus_thread_manager.h" | 8 #include "chromeos/dbus/dbus_thread_manager.h" |
| 9 #include "chromeos/dbus/update_engine_client.h" | 9 #include "chromeos/dbus/update_engine_client.h" |
| 10 | 10 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // Setup timer to to move along the upgrade advisory system. | 143 // Setup timer to to move along the upgrade advisory system. |
| 144 upgrade_notification_timer_.Start( | 144 upgrade_notification_timer_.Start( |
| 145 FROM_HERE, | 145 FROM_HERE, |
| 146 base::TimeDelta::FromMilliseconds(kNotifyCycleTimeMs), | 146 base::TimeDelta::FromMilliseconds(kNotifyCycleTimeMs), |
| 147 this, | 147 this, |
| 148 &UpgradeDetectorChromeos::NotifyOnUpgrade); | 148 &UpgradeDetectorChromeos::NotifyOnUpgrade); |
| 149 } | 149 } |
| 150 | 150 |
| 151 // static | 151 // static |
| 152 UpgradeDetectorChromeos* UpgradeDetectorChromeos::GetInstance() { | 152 UpgradeDetectorChromeos* UpgradeDetectorChromeos::GetInstance() { |
| 153 return Singleton<UpgradeDetectorChromeos>::get(); | 153 return base::Singleton<UpgradeDetectorChromeos>::get(); |
| 154 } | 154 } |
| 155 | 155 |
| 156 // static | 156 // static |
| 157 UpgradeDetector* UpgradeDetector::GetInstance() { | 157 UpgradeDetector* UpgradeDetector::GetInstance() { |
| 158 return UpgradeDetectorChromeos::GetInstance(); | 158 return UpgradeDetectorChromeos::GetInstance(); |
| 159 } | 159 } |
| OLD | NEW |