Index: chrome/browser/extensions/api/api_resource_manager.h |
diff --git a/chrome/browser/extensions/api/api_resource_manager.h b/chrome/browser/extensions/api/api_resource_manager.h |
index 9fbf1a7d3054a8a7c4305acbea0b7d69bc84dd62..6d3008a987d689ae5c8f05c1f2f1bfcda0109e4a 100644 |
--- a/chrome/browser/extensions/api/api_resource_manager.h |
+++ b/chrome/browser/extensions/api/api_resource_manager.h |
@@ -74,9 +74,8 @@ class ApiResourceManager : public ProfileKeyedAPI, |
public base::NonThreadSafe, |
public content::NotificationObserver { |
public: |
- explicit ApiResourceManager(Profile* profile) |
- : thread_id_(T::kThreadId), |
- data_(new ApiResourceData(thread_id_)) { |
+ explicit ApiResourceManager(content::BrowserContext* context) |
+ : thread_id_(T::kThreadId), data_(new ApiResourceData(thread_id_)) { |
registrar_.Add( |
this, |
chrome::NOTIFICATION_EXTENSION_UNLOADED, |
@@ -111,9 +110,9 @@ class ApiResourceManager : public ProfileKeyedAPI, |
static ProfileKeyedAPIFactory<ApiResourceManager<T> >* GetFactoryInstance(); |
// Convenience method to get the ApiResourceManager for a profile. |
- static ApiResourceManager<T>* Get(Profile* profile) { |
+ static ApiResourceManager<T>* Get(content::BrowserContext* context) { |
return ProfileKeyedAPIFactory<ApiResourceManager<T> >::GetForProfile( |
- profile); |
+ context); |
} |
// Takes ownership. |