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

Unified Diff: chrome/browser/extensions/extension_action_manager.cc

Issue 482993003: Move logic to clear ExtensionAction values to ExtensionActionAPI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Latest master for CQ Created 6 years, 4 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
« no previous file with comments | « chrome/browser/extensions/extension_action_manager.h ('k') | chrome/browser/extensions/installed_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_action_manager.cc
diff --git a/chrome/browser/extensions/extension_action_manager.cc b/chrome/browser/extensions/extension_action_manager.cc
index 1b334e3eba4a10fcec0496774544eca7f48765e5..ec26eb4c011eb38d9e11f2147abe998eee783630 100644
--- a/chrome/browser/extensions/extension_action_manager.cc
+++ b/chrome/browser/extensions/extension_action_manager.cc
@@ -22,9 +22,10 @@ namespace {
class ExtensionActionManagerFactory : public BrowserContextKeyedServiceFactory {
public:
// BrowserContextKeyedServiceFactory implementation:
- static ExtensionActionManager* GetForProfile(Profile* profile) {
+ static ExtensionActionManager* GetForBrowserContext(
+ content::BrowserContext* context) {
return static_cast<ExtensionActionManager*>(
- GetInstance()->GetServiceForBrowserContext(profile, true));
+ GetInstance()->GetServiceForBrowserContext(context, true));
}
static ExtensionActionManagerFactory* GetInstance();
@@ -68,8 +69,9 @@ ExtensionActionManager::~ExtensionActionManager() {
// sometimes (only in tests?) not unloaded before the Profile is destroyed.
}
-ExtensionActionManager* ExtensionActionManager::Get(Profile* profile) {
- return ExtensionActionManagerFactory::GetForProfile(profile);
+ExtensionActionManager* ExtensionActionManager::Get(
+ content::BrowserContext* context) {
+ return ExtensionActionManagerFactory::GetForBrowserContext(context);
}
void ExtensionActionManager::OnExtensionUnloaded(
« no previous file with comments | « chrome/browser/extensions/extension_action_manager.h ('k') | chrome/browser/extensions/installed_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698