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

Unified Diff: chrome/browser/extensions/extension_system.h

Issue 9977021: Add ExtensionSytem::Get(Profile*) as a wrapper around (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/extension_system.h
diff --git a/chrome/browser/extensions/extension_system.h b/chrome/browser/extensions/extension_system.h
index 3ed50028e19f6d21577371d6ed8678d61097ec06..bc1f52a01ec4263eebe1ad29f02a2552beaf8d16 100644
--- a/chrome/browser/extensions/extension_system.h
+++ b/chrome/browser/extensions/extension_system.h
@@ -37,6 +37,10 @@ class ExtensionSystem : public ProfileKeyedService {
ExtensionSystem();
virtual ~ExtensionSystem();
+ // Returns the instance for the given profile, or NULL if none. This is
+ // a convenience wrapper around ExtensionSystemFactory::GetForProfile.
+ static ExtensionSystem* Get(Profile* profile);
Yoyo Zhou 2012/04/04 22:54:21 I think GetForProfile is still preferable.
Matt Perry 2012/04/04 22:56:44 Blech. Unnecessarily verbose IMO. No one is going
+
// ProfileKeyedService implementation.
virtual void Shutdown() OVERRIDE {}
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | chrome/browser/extensions/extension_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698