| Index: chrome/browser/profiles/profile_impl.cc
|
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
| index 7a2a57b93c031f9438de8e89df21b49d6b741320..f1d498472bb194b6f38f237a89126ad094689e0e 100644
|
| --- a/chrome/browser/profiles/profile_impl.cc
|
| +++ b/chrome/browser/profiles/profile_impl.cc
|
| @@ -511,9 +511,11 @@ void ProfileImpl::DoFinalInit(bool is_new_profile) {
|
| restore_old_session_cookies,
|
| GetSpecialStoragePolicy());
|
|
|
| +#if defined(ENABLE_PLUGINS)
|
| ChromePluginServiceFilter::GetInstance()->RegisterResourceContext(
|
| PluginPrefs::GetForProfile(this),
|
| io_data_.GetResourceContextNoInit());
|
| +#endif
|
|
|
| // Delay README creation to not impact startup performance.
|
| BrowserThread::PostDelayedTask(
|
| @@ -590,8 +592,10 @@ ProfileImpl::~ProfileImpl() {
|
| // Remove pref observers
|
| pref_change_registrar_.RemoveAll();
|
|
|
| +#if defined(ENABLE_PLUGINS)
|
| ChromePluginServiceFilter::GetInstance()->UnregisterResourceContext(
|
| io_data_.GetResourceContextNoInit());
|
| +#endif
|
|
|
| // Destroy OTR profile and its profile services first.
|
| if (off_the_record_profile_.get()) {
|
|
|