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

Issue 872813003: Add Rappor metrics for Safe Browsing and SSL interstitials. (Closed)

Created:
5 years, 10 months ago by Nathan Parker
Modified:
5 years, 10 months ago
CC:
chromium-reviews, grt+watch_chromium.org, asvitkine+watch_chromium.org, Steven Holte
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Rappor metrics for Safe Browsing and SSL interstitials. This reports the eTLD+1 of URL. Later we'll add click-through and history state. BUG=451646 Committed: https://crrev.com/07334abebc0cb4ff38c8a95aff30215dd7202ab8 Cr-Commit-Position: refs/heads/master@{#314596}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Tweaks per review comments #

Patch Set 3 : Rename *UmaHelper* to *MetricsHelper* #

Patch Set 4 : Lowercase Rappor metrics, and add SSL metric. #

Total comments: 2

Patch Set 5 : Fix std::string nit #

Patch Set 6 : Actually fix nit #

Total comments: 4

Patch Set 7 : Report on PROCEED/DONT_PROCEED, and make explicit Rappor switch #

Total comments: 2

Patch Set 8 : Fit nit: Remove _MAX from enum #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -268 lines) Patch
A chrome/browser/interstitials/security_interstitial_metrics_helper.h View 1 2 3 4 5 6 7 1 chunk +94 lines, -0 lines 0 comments Download
A + chrome/browser/interstitials/security_interstitial_metrics_helper.cc View 1 2 3 4 5 6 4 chunks +46 lines, -14 lines 0 comments Download
M chrome/browser/interstitials/security_interstitial_uma_helper.h View 1 2 1 chunk +0 lines, -72 lines 0 comments Download
M chrome/browser/interstitials/security_interstitial_uma_helper.cc View 1 2 1 chunk +0 lines, -134 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 3 4 5 6 8 chunks +23 lines, -20 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.h View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.cc View 1 2 3 4 5 6 8 chunks +30 lines, -18 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M components/rappor/rappor_service.cc View 1 chunk +2 lines, -1 line 0 comments Download
M tools/metrics/rappor/rappor.xml View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 46 (14 generated)
Nathan Parker
If this approach looks reasonable, I'll rename s/uma_helper/metrics_helper/g in this CL.
5 years, 10 months ago (2015-01-28 16:38:39 UTC) #3
Alexei Svitkine (slow)
+holte
5 years, 10 months ago (2015-01-28 16:41:49 UTC) #6
Steven Holte
The approach looks fine to me.
5 years, 10 months ago (2015-01-28 18:45:38 UTC) #7
felt
https://codereview.chromium.org/872813003/diff/1/chrome/browser/interstitials/security_interstitial_uma_helper.cc File chrome/browser/interstitials/security_interstitial_uma_helper.cc (right): https://codereview.chromium.org/872813003/diff/1/chrome/browser/interstitials/security_interstitial_uma_helper.cc#newcode67 chrome/browser/interstitials/security_interstitial_uma_helper.cc:67: if (decision == SHOW) { nit: can you make ...
5 years, 10 months ago (2015-01-28 19:19:17 UTC) #8
Nathan Parker
PTAL. I can simplify the prefix code as described (toupper(..)), let me know if you ...
5 years, 10 months ago (2015-01-29 01:36:02 UTC) #9
Steven Holte
https://codereview.chromium.org/872813003/diff/1/chrome/browser/interstitials/security_interstitial_uma_helper.cc File chrome/browser/interstitials/security_interstitial_uma_helper.cc (right): https://codereview.chromium.org/872813003/diff/1/chrome/browser/interstitials/security_interstitial_uma_helper.cc#newcode75 chrome/browser/interstitials/security_interstitial_uma_helper.cc:75: "Interstitial." + rappor_prefix_ + ".Domain"; On 2015/01/29 01:36:02, nparker ...
5 years, 10 months ago (2015-01-29 02:46:12 UTC) #10
felt
https://codereview.chromium.org/872813003/diff/1/chrome/browser/interstitials/security_interstitial_uma_helper.h File chrome/browser/interstitials/security_interstitial_uma_helper.h (right): https://codereview.chromium.org/872813003/diff/1/chrome/browser/interstitials/security_interstitial_uma_helper.h#newcode50 chrome/browser/interstitials/security_interstitial_uma_helper.h:50: // url: Full URL of page that triggered the ...
5 years, 10 months ago (2015-01-29 06:18:36 UTC) #11
Nathan Parker
PTAL. I adjusted the naming, and added SSL reporting. https://codereview.chromium.org/872813003/diff/1/chrome/browser/interstitials/security_interstitial_uma_helper.cc File chrome/browser/interstitials/security_interstitial_uma_helper.cc (right): https://codereview.chromium.org/872813003/diff/1/chrome/browser/interstitials/security_interstitial_uma_helper.cc#newcode75 chrome/browser/interstitials/security_interstitial_uma_helper.cc:75: ...
5 years, 10 months ago (2015-01-30 00:39:51 UTC) #12
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/872813003/diff/60001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/872813003/diff/60001/chrome/browser/ssl/ssl_blocking_page.cc#newcode240 chrome/browser/ssl/ssl_blocking_page.cc:240: (interstitial_reason_ == SSL_REASON_BAD_CLOCK ? "" : "ssl"); Nit: ...
5 years, 10 months ago (2015-02-02 20:31:26 UTC) #13
Nathan Parker
Fixed. felt, mattm, and holte, any further comments? https://codereview.chromium.org/872813003/diff/60001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/872813003/diff/60001/chrome/browser/ssl/ssl_blocking_page.cc#newcode240 chrome/browser/ssl/ssl_blocking_page.cc:240: (interstitial_reason_ ...
5 years, 10 months ago (2015-02-02 21:51:18 UTC) #14
mattm
lgtm
5 years, 10 months ago (2015-02-02 23:12:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/872813003/100001
5 years, 10 months ago (2015-02-03 00:00:33 UTC) #17
commit-bot: I haz the power
All required reviewers (with asterisk prefixes) have not yet approved this CL. No LGTM from ...
5 years, 10 months ago (2015-02-03 00:00:36 UTC) #19
Steven Holte
lgtm
5 years, 10 months ago (2015-02-03 01:28:56 UTC) #21
Steven Holte
lgtm
5 years, 10 months ago (2015-02-03 01:28:57 UTC) #22
felt
Sorry for the delay. https://codereview.chromium.org/872813003/diff/100001/chrome/browser/interstitials/security_interstitial_metrics_helper.h File chrome/browser/interstitials/security_interstitial_metrics_helper.h (right): https://codereview.chromium.org/872813003/diff/100001/chrome/browser/interstitials/security_interstitial_metrics_helper.h#newcode53 chrome/browser/interstitials/security_interstitial_metrics_helper.h:53: // examples: "phishing", "ssl" I'm ...
5 years, 10 months ago (2015-02-03 07:28:04 UTC) #23
Alexei Svitkine (slow)
https://codereview.chromium.org/872813003/diff/100001/chrome/browser/interstitials/security_interstitial_metrics_helper.h File chrome/browser/interstitials/security_interstitial_metrics_helper.h (right): https://codereview.chromium.org/872813003/diff/100001/chrome/browser/interstitials/security_interstitial_metrics_helper.h#newcode53 chrome/browser/interstitials/security_interstitial_metrics_helper.h:53: // examples: "phishing", "ssl" On 2015/02/03 07:28:04, felt wrote: ...
5 years, 10 months ago (2015-02-03 14:58:25 UTC) #24
Nathan Parker
Updated per comments, and one additional mod: I decided we shouldn't report on SHOW, since ...
5 years, 10 months ago (2015-02-03 21:01:01 UTC) #25
Alexei Svitkine (slow)
I would still prefer a separate enum param to specify whether RAPPOR should be reported ...
5 years, 10 months ago (2015-02-03 22:04:03 UTC) #26
chromium-reviews
Unfortunately we need the UMA and Rappor prefixes to differ for SSL. Existing UMA prefixes ...
5 years, 10 months ago (2015-02-03 22:14:48 UTC) #27
Alexei Svitkine (slow)
Ok, fair enough. Then re-LGTM.
5 years, 10 months ago (2015-02-03 22:17:27 UTC) #28
mattm
https://codereview.chromium.org/872813003/diff/120001/chrome/browser/interstitials/security_interstitial_metrics_helper.h File chrome/browser/interstitials/security_interstitial_metrics_helper.h (right): https://codereview.chromium.org/872813003/diff/120001/chrome/browser/interstitials/security_interstitial_metrics_helper.h#newcode51 chrome/browser/interstitials/security_interstitial_metrics_helper.h:51: MAX_RAPPOR_REPORTING nit: max value isn't needed for this enum
5 years, 10 months ago (2015-02-03 22:25:54 UTC) #29
Nathan Parker
Thank you for the reviews. Committing. https://codereview.chromium.org/872813003/diff/120001/chrome/browser/interstitials/security_interstitial_metrics_helper.h File chrome/browser/interstitials/security_interstitial_metrics_helper.h (right): https://codereview.chromium.org/872813003/diff/120001/chrome/browser/interstitials/security_interstitial_metrics_helper.h#newcode51 chrome/browser/interstitials/security_interstitial_metrics_helper.h:51: MAX_RAPPOR_REPORTING On 2015/02/03 ...
5 years, 10 months ago (2015-02-03 22:43:03 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/872813003/140001
5 years, 10 months ago (2015-02-03 22:44:33 UTC) #34
commit-bot: I haz the power
All required reviewers (with asterisk prefixes) have not yet approved this CL. No LGTM from ...
5 years, 10 months ago (2015-02-03 22:44:38 UTC) #36
Nathan Parker
Oops, still missing LGTM from felt@
5 years, 10 months ago (2015-02-03 22:44:59 UTC) #37
felt
lgtm
5 years, 10 months ago (2015-02-04 08:56:37 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/872813003/140001
5 years, 10 months ago (2015-02-04 17:12:23 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/51987)
5 years, 10 months ago (2015-02-04 18:03:31 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/872813003/140001
5 years, 10 months ago (2015-02-04 18:16:32 UTC) #44
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 10 months ago (2015-02-04 18:48:04 UTC) #45
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 18:49:59 UTC) #46
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/07334abebc0cb4ff38c8a95aff30215dd7202ab8
Cr-Commit-Position: refs/heads/master@{#314596}

Powered by Google App Engine
This is Rietveld 408576698