| Index: chrome/browser/plugins/plugin_prefs_factory.cc
|
| diff --git a/chrome/browser/plugins/plugin_prefs_factory.cc b/chrome/browser/plugins/plugin_prefs_factory.cc
|
| index 32b543cf616c4d0c44131787e9710fffaed4acae..6f207bd3240ec7154c08668733cb115dd84f4f78 100644
|
| --- a/chrome/browser/plugins/plugin_prefs_factory.cc
|
| +++ b/chrome/browser/plugins/plugin_prefs_factory.cc
|
| @@ -28,7 +28,7 @@ scoped_refptr<PluginPrefs> PluginPrefsFactory::GetPrefsForProfile(
|
|
|
| // static
|
| scoped_refptr<RefcountedProfileKeyedService>
|
| -PluginPrefsFactory::CreateForTestingProfile(Profile* profile) {
|
| +PluginPrefsFactory::CreateForTestingProfile(content::BrowserContext* profile) {
|
| return static_cast<PluginPrefs*>(
|
| GetInstance()->BuildServiceInstanceFor(profile).get());
|
| }
|
| @@ -41,7 +41,9 @@ PluginPrefsFactory::PluginPrefsFactory()
|
| PluginPrefsFactory::~PluginPrefsFactory() {}
|
|
|
| scoped_refptr<RefcountedProfileKeyedService>
|
| -PluginPrefsFactory::BuildServiceInstanceFor(Profile* profile) const {
|
| +PluginPrefsFactory::BuildServiceInstanceFor(
|
| + content::BrowserContext* context) const {
|
| + Profile* profile = static_cast<Profile*>(context);
|
| scoped_refptr<PluginPrefs> plugin_prefs(new PluginPrefs());
|
| plugin_prefs->set_profile(profile->GetOriginalProfile());
|
| plugin_prefs->SetPrefs(profile->GetPrefs());
|
|
|