Index: chrome/browser/infobars/insecure_content_infobar_delegate.cc |
=================================================================== |
--- chrome/browser/infobars/insecure_content_infobar_delegate.cc (revision 241294) |
+++ chrome/browser/infobars/insecure_content_infobar_delegate.cc (working copy) |
@@ -9,6 +9,7 @@ |
#include "chrome/browser/infobars/infobar.h" |
#include "chrome/browser/infobars/infobar_service.h" |
#include "chrome/common/render_messages.h" |
+#include "content/public/browser/render_frame_host.h" |
#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/common/page_transition_types.h" |
@@ -90,12 +91,13 @@ |
(type_ == DISPLAY) ? DISPLAY_USER_OVERRIDE : RUN_USER_OVERRIDE, |
NUM_EVENTS); |
- int32 routing_id = web_contents()->GetRoutingID(); |
- web_contents()->Send((type_ == DISPLAY) ? |
+ web_contents()->SendToAllFrames((type_ == DISPLAY) ? |
static_cast<IPC::Message*>( |
- new ChromeViewMsg_SetAllowDisplayingInsecureContent(routing_id, |
+ new ChromeViewMsg_SetAllowDisplayingInsecureContent(MSG_ROUTING_NONE, |
true)) : |
- new ChromeViewMsg_SetAllowRunningInsecureContent(routing_id, true)); |
+ new ChromeViewMsg_SetAllowRunningInsecureContent(MSG_ROUTING_NONE, true)); |
+ web_contents()->GetMainFrame()->Send(new ChromeViewMsg_ReloadFrame( |
+ web_contents()->GetMainFrame()->GetRoutingID())); |
return true; |
} |