Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: chrome/browser/upgrade_detector_impl.cc

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/upgrade_detector_impl.h ('k') | chrome/browser/web_data_service_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/upgrade_detector_impl.h ('k') | chrome/browser/web_data_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698