Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(802)

Unified Diff: chrome/browser/pdf_unsupported_feature.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works now Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698