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

Side by Side Diff: chrome/browser/chromeos/upgrade_detector_chromeos.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
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/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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/upgrade_detector_chromeos.h ('k') | chrome/browser/content_settings/cookie_settings_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698