summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/plugin_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/plugin_manager.cc')
-rw-r--r--chrome/browser/extensions/plugin_manager.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/chrome/browser/extensions/plugin_manager.cc b/chrome/browser/extensions/plugin_manager.cc
index 0c88dc6..66faab6 100644
--- a/chrome/browser/extensions/plugin_manager.cc
+++ b/chrome/browser/extensions/plugin_manager.cc
@@ -25,11 +25,14 @@ static const char* kNaClPluginMimeType = "application/x-nacl";
namespace extensions {
-PluginManager::PluginManager(Profile* profile) : profile_(profile) {
- registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED,
- content::Source<Profile>(profile));
- registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_UNLOADED,
- content::Source<Profile>(profile));
+PluginManager::PluginManager(content::BrowserContext* context)
+ : profile_(Profile::FromBrowserContext(context)) {
+ registrar_.Add(this,
+ chrome::NOTIFICATION_EXTENSION_LOADED,
+ content::Source<Profile>(profile_));
+ registrar_.Add(this,
+ chrome::NOTIFICATION_EXTENSION_UNLOADED,
+ content::Source<Profile>(profile_));
}
PluginManager::~PluginManager() {