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

Unified Diff: chrome/browser/extensions/api/serial/serial_event_dispatcher.h

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.h
diff --git a/chrome/browser/extensions/api/serial/serial_event_dispatcher.h b/chrome/browser/extensions/api/serial/serial_event_dispatcher.h
index 34fd314de610cfdc0601dc457ed43c395b545057..83b8938866c8453f29102483985619519016afed 100644
--- a/chrome/browser/extensions/api/serial/serial_event_dispatcher.h
+++ b/chrome/browser/extensions/api/serial/serial_event_dispatcher.h
@@ -18,7 +18,7 @@ class SerialConnection;
namespace api {
// Per-profile dispatcher for events on serial connections.
-class SerialEventDispatcher : public ProfileKeyedAPI {
+class SerialEventDispatcher : public BrowserContextKeyedAPI {
public:
explicit SerialEventDispatcher(content::BrowserContext* context);
virtual ~SerialEventDispatcher();
@@ -28,14 +28,15 @@ class SerialEventDispatcher : public ProfileKeyedAPI {
static SerialEventDispatcher* Get(content::BrowserContext* context);
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<SerialEventDispatcher>* GetFactoryInstance();
+ // BrowserContextKeyedAPI implementation.
+ static BrowserContextKeyedAPIFactory<SerialEventDispatcher>*
+ GetFactoryInstance();
private:
typedef ApiResourceManager<SerialConnection>::ApiResourceData ConnectionData;
- friend class ProfileKeyedAPIFactory<SerialEventDispatcher>;
+ friend class BrowserContextKeyedAPIFactory<SerialEventDispatcher>;
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
static const char *service_name() {
return "SerialEventDispatcher";
}

Powered by Google App Engine
This is Rietveld 408576698