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, |