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

Unified Diff: chrome/browser/extensions/api/alarms/alarm_manager.cc

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/alarms/alarm_manager.cc
diff --git a/chrome/browser/extensions/api/alarms/alarm_manager.cc b/chrome/browser/extensions/api/alarms/alarm_manager.cc
index 9e007517555986382b7147d0aa2c05a96fa24980..c3d8ac586132f97a02d48e4302010824454ded0d 100644
--- a/chrome/browser/extensions/api/alarms/alarm_manager.cc
+++ b/chrome/browser/extensions/api/alarms/alarm_manager.cc
@@ -216,17 +216,18 @@ void AlarmManager::SetClockForTesting(base::Clock* clock) {
clock_.reset(clock);
}
-static base::LazyInstance<ProfileKeyedAPIFactory<AlarmManager> >
-g_factory = LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<BrowserContextKeyedAPIFactory<AlarmManager> >
+ g_factory = LAZY_INSTANCE_INITIALIZER;
// static
-ProfileKeyedAPIFactory<AlarmManager>* AlarmManager::GetFactoryInstance() {
+BrowserContextKeyedAPIFactory<AlarmManager>*
+AlarmManager::GetFactoryInstance() {
return g_factory.Pointer();
}
// static
AlarmManager* AlarmManager::Get(Profile* profile) {
- return ProfileKeyedAPIFactory<AlarmManager>::GetForProfile(profile);
+ return BrowserContextKeyedAPIFactory<AlarmManager>::Get(profile);
}
void AlarmManager::RemoveAlarmIterator(const AlarmIterator& iter) {
« no previous file with comments | « chrome/browser/extensions/api/alarms/alarm_manager.h ('k') | chrome/browser/extensions/api/api_resource_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698