diff options
author | cevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-14 02:23:11 +0000 |
---|---|---|
committer | cevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-14 02:23:11 +0000 |
commit | 5c3bdbfa7519a67042e71c4dd6059201530fc2c2 (patch) | |
tree | de9d45d0d097718aa65c376aeb36c17eb4fc5fda | |
parent | ab79d1e0ce74f983b1baeddb83ba371658fe8fdc (diff) | |
download | chromium_src-5c3bdbfa7519a67042e71c4dd6059201530fc2c2.zip chromium_src-5c3bdbfa7519a67042e71c4dd6059201530fc2c2.tar.gz chromium_src-5c3bdbfa7519a67042e71c4dd6059201530fc2c2.tar.bz2 |
Collect a few more stats relating to Google properties.
Review URL: http://codereview.chromium.org/7359005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92466 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/renderer/chrome_render_view_observer.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/renderer/chrome_render_view_observer.cc b/chrome/renderer/chrome_render_view_observer.cc index afbefdd9..73e8c94 100644 --- a/chrome/renderer/chrome_render_view_observer.cc +++ b/chrome/renderer/chrome_render_view_observer.cc @@ -92,6 +92,7 @@ static const char kSSLInsecureContent[] = "SSL.InsecureContent"; static const char kDotGoogleDotCom[] = ".google.com"; static const char kWWWDotGoogleDotCom[] = "www.google.com"; static const char kWWWDotYoutubeDotCom[] = "www.youtube.com"; +static const char kDotGoogleUserContentDotCom[] = ".googleusercontent.com"; static const char kDotJS[] = ".js"; static const char kDotCSS[] = ".css"; static const char kDotSWF[] = ".swf"; @@ -108,6 +109,9 @@ enum { INSECURE_CONTENT_RUN_JS, INSECURE_CONTENT_RUN_CSS, INSECURE_CONTENT_RUN_SWF, + INSECURE_CONTENT_DISPLAY_HOST_YOUTUBE, + INSECURE_CONTENT_RUN_HOST_YOUTUBE, + INSECURE_CONTENT_RUN_HOST_GOOGLEUSERCONTENT, INSECURE_CONTENT_NUM_EVENTS }; @@ -440,6 +444,10 @@ bool ChromeRenderViewObserver::allowDisplayingInsecureContent( UMA_HISTOGRAM_ENUMERATION(kSSLInsecureContent, INSECURE_CONTENT_DISPLAY_HOST_WWW_GOOGLE, INSECURE_CONTENT_NUM_EVENTS); + else if (host == kWWWDotYoutubeDotCom) + UMA_HISTOGRAM_ENUMERATION(kSSLInsecureContent, + INSECURE_CONTENT_DISPLAY_HOST_YOUTUBE, + INSECURE_CONTENT_NUM_EVENTS); GURL gurl(url); if (EndsWith(gurl.path(), kDotHTML, false)) UMA_HISTOGRAM_ENUMERATION(kSSLInsecureContent, @@ -470,6 +478,14 @@ bool ChromeRenderViewObserver::allowRunningInsecureContent( UMA_HISTOGRAM_ENUMERATION(kSSLInsecureContent, INSECURE_CONTENT_RUN_HOST_WWW_GOOGLE, INSECURE_CONTENT_NUM_EVENTS); + else if (host == kWWWDotYoutubeDotCom) + UMA_HISTOGRAM_ENUMERATION(kSSLInsecureContent, + INSECURE_CONTENT_RUN_HOST_YOUTUBE, + INSECURE_CONTENT_NUM_EVENTS); + else if (EndsWith(host, kDotGoogleUserContentDotCom, false)) + UMA_HISTOGRAM_ENUMERATION(kSSLInsecureContent, + INSECURE_CONTENT_RUN_HOST_GOOGLEUSERCONTENT, + INSECURE_CONTENT_NUM_EVENTS); GURL gurl(url); if (gurl.host() == kWWWDotYoutubeDotCom) UMA_HISTOGRAM_ENUMERATION(kSSLInsecureContent, |