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

Unified Diff: chrome/browser/extensions/api/location/location_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/location/location_manager.h
diff --git a/chrome/browser/extensions/api/location/location_manager.h b/chrome/browser/extensions/api/location/location_manager.h
index c121cc3227ce470de683ddc31238b01a72f5326d..db23a9acb86f4074f1b7db870abfc973e25dd659 100644
--- a/chrome/browser/extensions/api/location/location_manager.h
+++ b/chrome/browser/extensions/api/location/location_manager.h
@@ -9,9 +9,9 @@
#include <string>
#include "base/memory/weak_ptr.h"
-#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+#include "extensions/browser/browser_context_keyed_api_factory.h"
class Profile;
@@ -34,10 +34,9 @@ struct Coordinates;
// Profile's manager of all location watch requests created by chrome.location
// API. Lives in the UI thread.
-class LocationManager
- : public ProfileKeyedAPI,
- public content::NotificationObserver,
- public base::SupportsWeakPtr<LocationManager> {
+class LocationManager : public BrowserContextKeyedAPI,
+ public content::NotificationObserver,
+ public base::SupportsWeakPtr<LocationManager> {
public:
explicit LocationManager(content::BrowserContext* context);
virtual ~LocationManager();
@@ -55,15 +54,15 @@ class LocationManager
void RemoveLocationRequest(const std::string& extension_id,
const std::string& name);
- // ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<LocationManager>* GetFactoryInstance();
+ // BrowserContextKeyedAPI implementation.
+ static BrowserContextKeyedAPIFactory<LocationManager>* GetFactoryInstance();
// Convenience method to get the LocationManager for a profile.
static LocationManager* Get(content::BrowserContext* context);
private:
friend class LocationRequest;
- friend class ProfileKeyedAPIFactory<LocationManager>;
+ friend class BrowserContextKeyedAPIFactory<LocationManager>;
typedef std::string ExtensionId;
typedef scoped_refptr<LocationRequest> LocationRequestPointer;
@@ -86,7 +85,7 @@ class LocationManager
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
- // ProfileKeyedAPI implementation.
+ // BrowserContextKeyedAPI implementation.
static const char* service_name() { return "LocationManager"; }
// Profile for this location manager.
« no previous file with comments | « chrome/browser/extensions/api/input_ime/input_ime_api.cc ('k') | chrome/browser/extensions/api/location/location_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698