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

Unified Diff: chrome/browser/plugin_observer.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/plugin_observer.cc
diff --git a/chrome/browser/plugin_observer.cc b/chrome/browser/plugin_observer.cc
index 7983b9d2cff60afb529f51c7339bebf800816968..7d5b3afc86b79c6e52615af43b89b648a68df7c1 100644
--- a/chrome/browser/plugin_observer.cc
+++ b/chrome/browser/plugin_observer.cc
@@ -160,7 +160,8 @@ bool BlockedPluginInfoBarDelegate::Accept() {
bool BlockedPluginInfoBarDelegate::Cancel() {
UserMetrics::RecordAction(
UserMetricsAction("BlockedPluginInfobar.AlwaysAllow"));
- tab_contents_->profile()->GetHostContentSettingsMap()->AddExceptionForURL(
+ Profile* profile = static_cast<Profile*>(tab_contents_->context());
+ profile->GetHostContentSettingsMap()->AddExceptionForURL(
tab_contents_->GetURL(),
tab_contents_->GetURL(),
CONTENT_SETTINGS_TYPE_PLUGINS,

Powered by Google App Engine
This is Rietveld 408576698