| Index: chrome/browser/extensions/plugin_manager.cc
|
| diff --git a/chrome/browser/extensions/plugin_manager.cc b/chrome/browser/extensions/plugin_manager.cc
|
| index 0c88dc6a99974821010b3fdf82b931ab4bc44708..66faab657ea094a14542dc2bb0599c0bbb7c515e 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() {
|
|
|