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

Unified Diff: chrome/browser/ui/content_settings/content_setting_bubble_model.cc

Issue 1148773005: Add a RAPPOR metric to track where users click to allow mixed scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move mixed script shield RAPPOR stats into a new RecordMixedScriptActionWithRAPPOR() function. Created 5 years, 7 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/ui/content_settings/content_setting_bubble_model.cc
diff --git a/chrome/browser/ui/content_settings/content_setting_bubble_model.cc b/chrome/browser/ui/content_settings/content_setting_bubble_model.cc
index bdc7df799563be57ae400c71306f41395bd38395..9699279e84c8b2bccecedad50aab919008bd69a1 100644
--- a/chrome/browser/ui/content_settings/content_setting_bubble_model.cc
+++ b/chrome/browser/ui/content_settings/content_setting_bubble_model.cc
@@ -996,13 +996,15 @@ ContentSettingMixedScriptBubbleModel::ContentSettingMixedScriptBubbleModel(
}
void ContentSettingMixedScriptBubbleModel::OnCustomLinkClicked() {
- content_settings::RecordMixedScriptAction(
- content_settings::MIXED_SCRIPT_ACTION_CLICKED_ALLOW);
DCHECK(web_contents());
web_contents()->SendToAllFrames(
new ChromeViewMsg_SetAllowRunningInsecureContent(MSG_ROUTING_NONE, true));
web_contents()->GetMainFrame()->Send(new ChromeViewMsg_ReloadFrame(
web_contents()->GetMainFrame()->GetRoutingID()));
+
+ content_settings::RecordMixedScriptActionWithRAPPOR(
+ content_settings::MIXED_SCRIPT_ACTION_CLICKED_ALLOW,
+ web_contents()->GetLastCommittedURL());
}
ContentSettingRPHBubbleModel::ContentSettingRPHBubbleModel(

Powered by Google App Engine
This is Rietveld 408576698