| Index: chrome/browser/pdf_unsupported_feature.cc
|
| diff --git a/chrome/browser/pdf_unsupported_feature.cc b/chrome/browser/pdf_unsupported_feature.cc
|
| index 8715fb8f6214d31b085411bc4a8e3cbf01783ffd..01076cd1127622375f6ea111c19cfcc0109e748e 100644
|
| --- a/chrome/browser/pdf_unsupported_feature.cc
|
| +++ b/chrome/browser/pdf_unsupported_feature.cc
|
| @@ -86,8 +86,9 @@ InfoBarDelegate::Type
|
| }
|
|
|
| bool PDFEnableAdobeReaderInfoBarDelegate::Accept() {
|
| - tab_contents_->profile()->GetPrefs()->SetBoolean(
|
| - prefs::kPluginsShowSetReaderDefaultInfobar, false);
|
| + Profile* profile = static_cast<Profile*>(tab_contents_->context());
|
| + profile->GetPrefs()->SetBoolean(prefs::kPluginsShowSetReaderDefaultInfobar,
|
| + false);
|
| OnNo();
|
| return true;
|
| }
|
| @@ -115,7 +116,8 @@ void PDFEnableAdobeReaderInfoBarDelegate::OnYes() {
|
| PluginUpdater* plugin_updater = PluginUpdater::GetInstance();
|
| plugin_updater->EnablePluginGroup(true,
|
| ASCIIToUTF16(webkit::npapi::PluginGroup::kAdobeReaderGroupName));
|
| - plugin_updater->UpdatePreferences(tab_contents_->profile(), 0);
|
| + Profile* profile = static_cast<Profile*>(tab_contents_->context());
|
| + plugin_updater->UpdatePreferences(profile, 0);
|
| }
|
|
|
| void PDFEnableAdobeReaderInfoBarDelegate::OnNo() {
|
|
|