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

Unified Diff: chrome/browser/extensions/api/api_resource_manager.h

Issue 179243002: Change ProfileKeyedAPIFactory to build instances with BrowserContext instead of Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: locationbarview 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/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 6d3008a987d689ae5c8f05c1f2f1bfcda0109e4a..31c2f1f9f9d160c2fe54421173e4aa82dc9dc96f 100644
--- a/chrome/browser/extensions/api/api_resource_manager.h
+++ b/chrome/browser/extensions/api/api_resource_manager.h
@@ -88,9 +88,9 @@ class ApiResourceManager : public ProfileKeyedAPI,
// For Testing.
static ApiResourceManager<T>* CreateApiResourceManagerForTest(
- Profile* profile,
+ content::BrowserContext* context,
content::BrowserThread::ID thread_id) {
- ApiResourceManager* manager = new ApiResourceManager<T>(profile);
+ ApiResourceManager* manager = new ApiResourceManager<T>(context);
manager->thread_id_ = thread_id;
manager->data_ = new ApiResourceData(thread_id);
return manager;
« no previous file with comments | « chrome/browser/chromeos/extensions/screenlock_private_api.cc ('k') | chrome/browser/extensions/api/audio/audio_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698