| Index: chrome/browser/extensions/api/hid/hid_device_manager.h
|
| diff --git a/chrome/browser/extensions/api/hid/hid_device_manager.h b/chrome/browser/extensions/api/hid/hid_device_manager.h
|
| index 7050844e01e5738b046f09dd779a29195c67d452..84a6e3022e5335c59a3d9551473bdb96714fa6fe 100644
|
| --- a/chrome/browser/extensions/api/hid/hid_device_manager.h
|
| +++ b/chrome/browser/extensions/api/hid/hid_device_manager.h
|
| @@ -12,24 +12,24 @@
|
| #include "base/basictypes.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/threading/thread_checker.h"
|
| -#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/common/extensions/api/hid.h"
|
| #include "device/hid/hid_device_info.h"
|
| +#include "extensions/browser/browser_context_keyed_api_factory.h"
|
|
|
| namespace extensions {
|
|
|
| -class HidDeviceManager : public ProfileKeyedAPI {
|
| +class HidDeviceManager : public BrowserContextKeyedAPI {
|
| public:
|
| explicit HidDeviceManager(content::BrowserContext* context);
|
| virtual ~HidDeviceManager();
|
|
|
| - // ProfileKeyedAPI implementation.
|
| - static ProfileKeyedAPIFactory<HidDeviceManager>* GetFactoryInstance();
|
| + // BrowserContextKeyedAPI implementation.
|
| + static BrowserContextKeyedAPIFactory<HidDeviceManager>* GetFactoryInstance();
|
|
|
| // Convenience method to get the HidDeviceManager for a profile.
|
| static HidDeviceManager* Get(content::BrowserContext* context) {
|
| - return ProfileKeyedAPIFactory<HidDeviceManager>::GetForProfile(context);
|
| + return BrowserContextKeyedAPIFactory<HidDeviceManager>::Get(context);
|
| }
|
|
|
| scoped_ptr<base::ListValue> GetApiDevices(uint16_t vendor_id,
|
| @@ -38,7 +38,7 @@ class HidDeviceManager : public ProfileKeyedAPI {
|
| bool GetDeviceInfo(int resource_id, device::HidDeviceInfo* device_info);
|
|
|
| private:
|
| - friend class ProfileKeyedAPIFactory<HidDeviceManager>;
|
| + friend class BrowserContextKeyedAPIFactory<HidDeviceManager>;
|
|
|
| static const char* service_name() { return "HidDeviceManager"; }
|
|
|
|
|