| Index: chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.h
|
| diff --git a/chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.h b/chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.h
|
| index 3bac1af9bb1f7843e5daa82196dde8ec48de8978..291347a5e1cc946a64bdcd7b3eb4d41988796ca4 100644
|
| --- a/chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.h
|
| +++ b/chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.h
|
| @@ -9,8 +9,8 @@
|
|
|
| #include "base/gtest_prod_util.h"
|
| #include "base/memory/scoped_vector.h"
|
| -#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
|
| #include "chrome/browser/sync/glue/synced_device_tracker.h"
|
| +#include "extensions/browser/browser_context_keyed_api_factory.h"
|
| #include "extensions/browser/event_router.h"
|
|
|
| class Profile;
|
| @@ -23,7 +23,7 @@ class NotificationRegistrar;
|
| } // namespace content
|
|
|
| namespace extensions {
|
| -class ProfileKeyedAPI;
|
| +class BrowserContextKeyedAPI;
|
|
|
| struct EventListenerInfo;
|
|
|
| @@ -53,18 +53,18 @@ class SignedInDevicesChangeObserver
|
| content::NotificationRegistrar registrar_;
|
| };
|
|
|
| -class SignedInDevicesManager
|
| - : public ProfileKeyedAPI,
|
| - public content::NotificationObserver,
|
| - public EventRouter::Observer {
|
| +class SignedInDevicesManager : public BrowserContextKeyedAPI,
|
| + public content::NotificationObserver,
|
| + public EventRouter::Observer {
|
| public:
|
| // Default constructor used for testing.
|
| SignedInDevicesManager();
|
| explicit SignedInDevicesManager(content::BrowserContext* context);
|
| virtual ~SignedInDevicesManager();
|
|
|
| - // ProfileKeyedAPI implementation.
|
| - static ProfileKeyedAPIFactory<SignedInDevicesManager>* GetFactoryInstance();
|
| + // BrowserContextKeyedAPI implementation.
|
| + static BrowserContextKeyedAPIFactory<SignedInDevicesManager>*
|
| + GetFactoryInstance();
|
|
|
| // NotificationObserver:
|
| virtual void Observe(int type,
|
| @@ -76,9 +76,9 @@ class SignedInDevicesManager
|
| virtual void OnListenerRemoved(const EventListenerInfo& details) OVERRIDE;
|
|
|
| private:
|
| - friend class ProfileKeyedAPIFactory<SignedInDevicesManager>;
|
| + friend class BrowserContextKeyedAPIFactory<SignedInDevicesManager>;
|
|
|
| - // ProfileKeyedAPI implementation.
|
| + // BrowserContextKeyedAPI implementation.
|
| static const char* service_name() {
|
| return "SignedInDevicesManager";
|
| }
|
|
|