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

Unified Diff: chrome/renderer/content_settings_observer.cc

Issue 2048303002: Fix broken mixed script Rappor metric and add browser test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make BlockAllContentForTesting() uphold the details-is-a-valid-GURL contract Created 4 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/content_settings_observer.cc
diff --git a/chrome/renderer/content_settings_observer.cc b/chrome/renderer/content_settings_observer.cc
index 8bf046741d65ffa0b06a4183bd22d5d53de35c2c..ac80ba79c89cbe1cc78e7b7ae7cec6e8143e5bc8 100644
--- a/chrome/renderer/content_settings_observer.cc
+++ b/chrome/renderer/content_settings_observer.cc
@@ -483,7 +483,7 @@ bool ContentSettingsObserver::allowRunningInsecureContent(
SendInsecureContentSignal(INSECURE_CONTENT_RUN_SWF);
if (!allow_running_insecure_content_ && !allowed_per_settings) {
- DidBlockContentType(CONTENT_SETTINGS_TYPE_MIXEDSCRIPT, origin.host());
+ DidBlockContentType(CONTENT_SETTINGS_TYPE_MIXEDSCRIPT, origin.toString());
sky 2016/06/16 16:22:47 I'm not familiar with this code, so why is toStrin
estark 2016/06/16 16:56:58 The browser-side IPC handler expects |details| to
sky 2016/06/16 17:42:49 Can DidBlockContentType take a GURL then? Also, it
estark 2016/06/16 18:29:23 Ah, that's a good point. It appears that this coul
Jialiu Lin 2016/06/16 20:47:17 Here is the CL originally introduced this rappor m
return false;
}

Powered by Google App Engine
This is Rietveld 408576698