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/upgrade_detector_impl.h" | 5 #include "chrome/browser/upgrade_detector_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/build_time.h" | 10 #include "base/build_time.h" |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 } | 504 } |
505 | 505 |
506 void UpgradeDetectorImpl::NotifyOnUpgrade() { | 506 void UpgradeDetectorImpl::NotifyOnUpgrade() { |
507 const base::TimeDelta time_passed = | 507 const base::TimeDelta time_passed = |
508 base::TimeTicks::Now() - upgrade_detected_time_; | 508 base::TimeTicks::Now() - upgrade_detected_time_; |
509 NotifyOnUpgradeWithTimePassed(time_passed); | 509 NotifyOnUpgradeWithTimePassed(time_passed); |
510 } | 510 } |
511 | 511 |
512 // static | 512 // static |
513 UpgradeDetectorImpl* UpgradeDetectorImpl::GetInstance() { | 513 UpgradeDetectorImpl* UpgradeDetectorImpl::GetInstance() { |
514 return Singleton<UpgradeDetectorImpl>::get(); | 514 return base::Singleton<UpgradeDetectorImpl>::get(); |
515 } | 515 } |
516 | 516 |
517 // static | 517 // static |
518 UpgradeDetector* UpgradeDetector::GetInstance() { | 518 UpgradeDetector* UpgradeDetector::GetInstance() { |
519 return UpgradeDetectorImpl::GetInstance(); | 519 return UpgradeDetectorImpl::GetInstance(); |
520 } | 520 } |
OLD | NEW |