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

Unified Diff: chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.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/webrtc_audio_private/webrtc_audio_private_api.h
diff --git a/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h b/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
index 066ab394785cf034fcb892b163dd1fca75362847..be4a9e8305866cc8bd31312b08a62635236479ab 100644
--- a/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
+++ b/chrome/browser/extensions/api/webrtc_audio_private/webrtc_audio_private_api.h
@@ -7,10 +7,10 @@
#include "base/memory/ref_counted.h"
#include "base/system_monitor/system_monitor.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/common/extensions/api/webrtc_audio_private.h"
#include "content/public/browser/render_view_host.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
#include "media/audio/audio_device_name.h"
#include "url/gurl.h"
@@ -22,15 +22,15 @@ namespace extensions {
// Listens for device changes and forwards as an extension event.
class WebrtcAudioPrivateEventService
- : public ProfileKeyedAPI,
+ : public BrowserContextKeyedAPI,
public base::SystemMonitor::DevicesChangedObserver {
public:
explicit WebrtcAudioPrivateEventService(content::BrowserContext* context);
virtual ~WebrtcAudioPrivateEventService();
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
virtual void Shutdown() OVERRIDE;
- static ProfileKeyedAPIFactory<WebrtcAudioPrivateEventService>*
+ static BrowserContextKeyedAPIFactory<WebrtcAudioPrivateEventService>*
GetFactoryInstance();
static const char* service_name();
@@ -39,7 +39,7 @@ class WebrtcAudioPrivateEventService
base::SystemMonitor::DeviceType device_type) OVERRIDE;
private:
- friend class ProfileKeyedAPIFactory<WebrtcAudioPrivateEventService>;
+ friend class BrowserContextKeyedAPIFactory<WebrtcAudioPrivateEventService>;
void SignalEvent();

Powered by Google App Engine
This is Rietveld 408576698