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

Unified Diff: chrome/browser/extensions/api/location/location_manager.h

Issue 166053003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 2). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: | 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 6983b17176528f0c1371538233ee1135357251cd..c121cc3227ce470de683ddc31238b01a72f5326d 100644
--- a/chrome/browser/extensions/api/location/location_manager.h
+++ b/chrome/browser/extensions/api/location/location_manager.h
@@ -16,6 +16,7 @@
class Profile;
namespace content {
+class BrowserContext;
struct Geoposition;
} // namespace content
@@ -38,7 +39,7 @@ class LocationManager
public content::NotificationObserver,
public base::SupportsWeakPtr<LocationManager> {
public:
- explicit LocationManager(Profile* profile);
+ explicit LocationManager(content::BrowserContext* context);
virtual ~LocationManager();
// Adds location request for the given extension, and starts the location
@@ -58,7 +59,7 @@ class LocationManager
static ProfileKeyedAPIFactory<LocationManager>* GetFactoryInstance();
// Convenience method to get the LocationManager for a profile.
- static LocationManager* Get(Profile* profile);
+ static LocationManager* Get(content::BrowserContext* context);
private:
friend class LocationRequest;
« 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