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

Unified Diff: chrome/renderer/chrome_render_view_observer.cc

Issue 10577028: Move the mixed scripting infobar to a page action icon / content setting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/renderer/chrome_render_view_observer.cc
===================================================================
--- chrome/renderer/chrome_render_view_observer.cc (revision 142907)
+++ chrome/renderer/chrome_render_view_observer.cc (working copy)
@@ -229,7 +229,6 @@
last_indexed_page_id_(-1),
allow_displaying_insecure_content_(false),
allow_running_insecure_content_(false),
- warned_about_insecure_content_(false),
capture_timer_(false, false) {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
render_view->GetWebView()->setPermissionClient(this);
@@ -630,10 +629,8 @@
SendInsecureContentSignal(INSECURE_CONTENT_RUN_SWF);
if (!allow_running_insecure_content_ && !allowed_per_settings) {
- if (!warned_about_insecure_content_ && !IsStrictSecurityHost(origin_host)) {
- warned_about_insecure_content_ = true;
- Send(new ChromeViewHostMsg_DidBlockRunningInsecureContent(routing_id()));
- }
+ if (!IsStrictSecurityHost(origin_host))
+ content_settings_->DidNotAllowMixedScript();
return false;
}

Powered by Google App Engine
This is Rietveld 408576698