summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-15 10:51:29 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-15 10:51:29 +0000
commit5d30ae6153623cc8f67a036afdb7537ebce0d681 (patch)
treefbc7a57ba86164b8f5cfd8c1a13e4abfa6269048 /tools
parente479082bf5cfe5895dff60271a24b7a410c07c2f (diff)
downloadchromium_src-5d30ae6153623cc8f67a036afdb7537ebce0d681.zip
chromium_src-5d30ae6153623cc8f67a036afdb7537ebce0d681.tar.gz
chromium_src-5d30ae6153623cc8f67a036afdb7537ebce0d681.tar.bz2
Implement safebrowsing download feedback service, enabled for dev & canary only.
For eligible files, the "Discard" button in the download shelf becomes "Report & Discard". (Plain "Discard" is still available in the popup menu.) BUG=169557 Review URL: https://chromiumcodereview.appspot.com/15881012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206571 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r--tools/metrics/histograms/histograms.xml65
1 files changed, 65 insertions, 0 deletions
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index 186501c..b66fc5d 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -941,6 +941,13 @@ other types of suffix sets.
<summary>TBD</summary>
</histogram>
+<histogram name="clickjacking.report_and_discard_download" units="ms">
+ <summary>
+ Time between &quot;Report and Discard&quot; button being shown and it being
+ clicked.
+ </summary>
+</histogram>
+
<histogram name="clickjacking.save_download">
<summary>TBD</summary>
</histogram>
@@ -10581,6 +10588,53 @@ other types of suffix sets.
</summary>
</histogram>
+<histogram name="SBDownloadFeedback.Activations" enum="DownloadItem.DangerType">
+ <summary>
+ Count of times download feedback has been started, broken down by danger
+ type.
+ </summary>
+</histogram>
+
+<histogram name="SBDownloadFeedback.ActiveFeedbacks">
+ <summary>
+ When a new download feedback request is added, records the number of
+ download requests currently active and/or pending.
+ </summary>
+</histogram>
+
+<histogram name="SBDownloadFeedback.Shown" enum="DownloadItem.DangerType">
+ <summary>
+ Count of times download feedback button has been shown, broken down by
+ danger type.
+ </summary>
+</histogram>
+
+<histogram name="SBDownloadFeedback.SizeEligibleKB" units="KB">
+ <summary>
+ Size of downloads that were of the correct danger type, regardless if they
+ meet the max file size check or if they are actually uploaded or not.
+ </summary>
+</histogram>
+
+<histogram name="SBDownloadFeedback.SizeFailure" units="bytes">
+ <summary>
+ Size of downloads that failed to be uploaded to the feedback service.
+ </summary>
+</histogram>
+
+<histogram name="SBDownloadFeedback.SizeSuccess" units="bytes">
+ <summary>
+ Size of downloads that were successfully uploaded to the feedback service.
+ </summary>
+</histogram>
+
+<histogram name="SBDownloadFeedback.UploadResult"
+ enum="SBDownloadFeedbackUploadResult">
+ <summary>
+ Final result of attempt to upload binary to download feedback service.
+ </summary>
+</histogram>
+
<histogram name="Search.DefaultSearchProvider" enum="OmniboxSearchEngine">
<summary>
The id of the default search engine that is loaded after Chrome startup. See
@@ -17223,6 +17277,17 @@ other types of suffix sets.
<int value="5" label="MODEL_MISSING_FIELDS"/>
</enum>
+<enum name="SBDownloadFeedbackUploadResult" type="int">
+ <int value="0" label="SUCCESS"/>
+ <int value="1" label="UPLOAD_SUCCESS"/>
+ <int value="2" label="UPLOAD_CANCELLED"/>
+ <int value="3" label="UPLOAD_METADATA_NET_ERROR"/>
+ <int value="4" label="UPLOAD_METADATA_RESPONSE_ERROR"/>
+ <int value="5" label="UPLOAD_FILE_NET_ERROR"/>
+ <int value="6" label="UPLOAD_FILE_RESPONSE_ERROR"/>
+ <int value="7" label="UPLOAD_COMPLETE_RESPONSE_ERROR"/>
+</enum>
+
<enum name="ShillTerminationActionResult" type="int">
<summary>
The termination action result types come from TerminationActionResult in