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

Unified Diff: chrome/browser/extensions/api/serial/serial_event_dispatcher.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/serial/serial_event_dispatcher.cc
diff --git a/chrome/browser/extensions/api/serial/serial_event_dispatcher.cc b/chrome/browser/extensions/api/serial/serial_event_dispatcher.cc
index 91dae3df3de2cf90fcf0a34006e05888694438a2..06bbf8b4c0a0bb66d4cfec5d9b8b73fa9b9c3b31 100644
--- a/chrome/browser/extensions/api/serial/serial_event_dispatcher.cc
+++ b/chrome/browser/extensions/api/serial/serial_event_dispatcher.cc
@@ -25,19 +25,19 @@ bool ShouldPauseOnReceiveError(serial::ReceiveError error) {
} // namespace
-static base::LazyInstance<ProfileKeyedAPIFactory<SerialEventDispatcher> >
+static base::LazyInstance<BrowserContextKeyedAPIFactory<SerialEventDispatcher> >
g_factory = LAZY_INSTANCE_INITIALIZER;
// static
-ProfileKeyedAPIFactory<SerialEventDispatcher>*
- SerialEventDispatcher::GetFactoryInstance() {
+BrowserContextKeyedAPIFactory<SerialEventDispatcher>*
+SerialEventDispatcher::GetFactoryInstance() {
return g_factory.Pointer();
}
// static
SerialEventDispatcher* SerialEventDispatcher::Get(
content::BrowserContext* context) {
- return ProfileKeyedAPIFactory<SerialEventDispatcher>::GetForProfile(context);
+ return BrowserContextKeyedAPIFactory<SerialEventDispatcher>::Get(context);
}
SerialEventDispatcher::SerialEventDispatcher(content::BrowserContext* context)

Powered by Google App Engine
This is Rietveld 408576698