Index: chrome/browser/infobars/insecure_content_infobar_delegate.cc |
diff --git a/chrome/browser/infobars/insecure_content_infobar_delegate.cc b/chrome/browser/infobars/insecure_content_infobar_delegate.cc |
index 85cc4e02ba83ceb9a2f68ad64bdb72883c5ab08e..16bf9543127b6e433ad6862f6fbe8d62270a831f 100644 |
--- a/chrome/browser/infobars/insecure_content_infobar_delegate.cc |
+++ b/chrome/browser/infobars/insecure_content_infobar_delegate.cc |
@@ -8,6 +8,7 @@ |
#include <utility> |
#include "base/metrics/histogram.h" |
+#include "chrome/browser/content_settings/mixed_content_settings.h" |
#include "chrome/browser/infobars/infobar_service.h" |
#include "chrome/common/render_messages.h" |
#include "chrome/grit/generated_resources.h" |
@@ -94,6 +95,9 @@ bool InsecureContentInfoBarDelegate::Cancel() { |
content::WebContents* web_contents = |
InfoBarService::WebContentsFromInfoBar(infobar()); |
+ MixedContentSettings* mixed_content_settings = |
+ MixedContentSettings::FromWebContents(web_contents); |
+ mixed_content_settings->AllowDisplayingOfInsecureContent(); |
web_contents->SendToAllFrames( |
new ChromeViewMsg_SetAllowDisplayingInsecureContent( |
MSG_ROUTING_NONE, true)); |