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

Unified Diff: chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager.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/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";
}

Powered by Google App Engine
This is Rietveld 408576698