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

Issue 839183002: Remove redundancy in security interstitial UMA logic (Closed)

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

Description

Remove redundancy in security interstitial UMA logic Currently, very similar events are being recorded in different ways between the Safe Browsing and SSL interstitials. This unifies the event types and shares a common helper method between the two. It should be extensible to future interstitials. It also has the pleasant side effect of reducing the overwhelming complexity of the previous interstitial.ssl histogram. BUG=448487 Committed: https://crrev.com/4cd6e60d57c83b5f7b3a6de4497329de7822e316 Cr-Commit-Position: refs/heads/master@{#312042}

Patch Set 1 #

Patch Set 2 : Using methods to get hist/sampling names #

Patch Set 3 : Removed internal_ #

Patch Set 4 : Move to SecurityInterstitialUmaHelper class #

Patch Set 5 : Fix compile error for platforms w/o extensions #

Total comments: 10

Patch Set 6 : Answering mattm's questions #

Total comments: 21

Patch Set 7 : Changes for Chris and Alexei #

Patch Set 8 : Now using prefixes #

Patch Set 9 : Fixing Android compile bug #

Patch Set 10 : Small bugfix #

Patch Set 11 : One more NOTREACHED tweak #

Patch Set 12 : ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+385 lines, -504 lines) Patch
A chrome/browser/interstitials/security_interstitial_uma_helper.h View 1 2 3 4 5 6 1 chunk +72 lines, -0 lines 0 comments Download
A chrome/browser/interstitials/security_interstitial_uma_helper.cc View 1 2 3 4 5 6 1 chunk +134 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.h View 1 2 3 5 chunks +11 lines, -46 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 3 4 5 6 7 8 9 10 11 16 chunks +62 lines, -167 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.h View 1 2 3 4 5 4 chunks +9 lines, -22 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.cc View 1 2 3 4 5 6 7 8 9 14 chunks +50 lines, -210 lines 0 comments Download
M chrome/browser/ssl/ssl_error_classification.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 4 chunks +43 lines, -59 lines 0 comments Download

Messages

Total messages: 25 (5 generated)
felt
mattm, meacer: I started this CL to remove redundancy in the security interstitial UMA logic. ...
5 years, 11 months ago (2015-01-09 02:58:20 UTC) #2
mattm
On 2015/01/09 02:58:20, felt wrote: > mattm, meacer: > > I started this CL to ...
5 years, 11 months ago (2015-01-09 04:01:53 UTC) #3
felt
On 2015/01/09 04:01:53, mattm wrote: > On 2015/01/09 02:58:20, felt wrote: > > mattm, meacer: ...
5 years, 11 months ago (2015-01-10 00:48:09 UTC) #4
mattm
On 2015/01/10 00:48:09, felt wrote: > On 2015/01/09 04:01:53, mattm wrote: > > On 2015/01/09 ...
5 years, 11 months ago (2015-01-12 23:35:40 UTC) #5
felt
mattm, please review now. I decided to move this into a SecurityInterstitialUmaHelper class instead of ...
5 years, 11 months ago (2015-01-13 20:51:04 UTC) #6
mattm
Like the approach, just a few questions. https://codereview.chromium.org/839183002/diff/80001/chrome/browser/interstitials/security_interstitial_uma_helper.h File chrome/browser/interstitials/security_interstitial_uma_helper.h (right): https://codereview.chromium.org/839183002/diff/80001/chrome/browser/interstitials/security_interstitial_uma_helper.h#newcode9 chrome/browser/interstitials/security_interstitial_uma_helper.h:9: #include "chrome/browser/history/history_service.h" ...
5 years, 11 months ago (2015-01-14 00:33:04 UTC) #7
felt
https://codereview.chromium.org/839183002/diff/80001/chrome/browser/interstitials/security_interstitial_uma_helper.h File chrome/browser/interstitials/security_interstitial_uma_helper.h (right): https://codereview.chromium.org/839183002/diff/80001/chrome/browser/interstitials/security_interstitial_uma_helper.h#newcode9 chrome/browser/interstitials/security_interstitial_uma_helper.h:9: #include "chrome/browser/history/history_service.h" On 2015/01/14 00:33:03, mattm wrote: > This ...
5 years, 11 months ago (2015-01-14 00:55:18 UTC) #8
mattm
lgtm!
5 years, 11 months ago (2015-01-14 01:25:57 UTC) #9
felt
alexei, palmer, PTAL? alexei: for histograms.xml and SecurityInterstitialUmaHelper; note that I'm not using the macros ...
5 years, 11 months ago (2015-01-14 02:38:43 UTC) #11
Alexei Svitkine (slow)
https://codereview.chromium.org/839183002/diff/100001/chrome/browser/interstitials/security_interstitial_uma_helper.cc File chrome/browser/interstitials/security_interstitial_uma_helper.cc (right): https://codereview.chromium.org/839183002/diff/100001/chrome/browser/interstitials/security_interstitial_uma_helper.cc#newcode137 chrome/browser/interstitials/security_interstitial_uma_helper.cc:137: bool success, int num_visits, base::Time first_visit) { Nit: When ...
5 years, 11 months ago (2015-01-14 22:12:33 UTC) #12
palmer
LGTM mod noodles. https://codereview.chromium.org/839183002/diff/100001/chrome/browser/interstitials/security_interstitial_uma_helper.cc File chrome/browser/interstitials/security_interstitial_uma_helper.cc (right): https://codereview.chromium.org/839183002/diff/100001/chrome/browser/interstitials/security_interstitial_uma_helper.cc#newcode137 chrome/browser/interstitials/security_interstitial_uma_helper.cc:137: bool success, int num_visits, base::Time first_visit) ...
5 years, 11 months ago (2015-01-15 01:09:32 UTC) #13
felt
https://codereview.chromium.org/839183002/diff/100001/chrome/browser/interstitials/security_interstitial_uma_helper.cc File chrome/browser/interstitials/security_interstitial_uma_helper.cc (right): https://codereview.chromium.org/839183002/diff/100001/chrome/browser/interstitials/security_interstitial_uma_helper.cc#newcode137 chrome/browser/interstitials/security_interstitial_uma_helper.cc:137: bool success, int num_visits, base::Time first_visit) { On 2015/01/14 ...
5 years, 11 months ago (2015-01-15 06:47:22 UTC) #14
Alexei Svitkine (slow)
Sorry for the tardy reply, I was out of the office yesterday and today. https://codereview.chromium.org/839183002/diff/100001/tools/metrics/histograms/histograms.xml ...
5 years, 11 months ago (2015-01-16 22:14:20 UTC) #15
felt
Thanks, updated to use the prefixes. https://codereview.chromium.org/839183002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/839183002/diff/100001/tools/metrics/histograms/histograms.xml#newcode11595 tools/metrics/histograms/histograms.xml:11595: +<histogram name="interstitial.ssl_overridable.interaction" On ...
5 years, 11 months ago (2015-01-17 00:32:49 UTC) #16
Alexei Svitkine (slow)
lgtm
5 years, 11 months ago (2015-01-17 00:40:54 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/839183002/140001
5 years, 11 months ago (2015-01-17 00:45:59 UTC) #19
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/46259) Try jobs failed on following ...
5 years, 11 months ago (2015-01-17 00:59:52 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/839183002/220001
5 years, 11 months ago (2015-01-17 16:41:57 UTC) #23
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 11 months ago (2015-01-17 17:04:32 UTC) #24
commit-bot: I haz the power
5 years, 11 months ago (2015-01-17 17:05:35 UTC) #25
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/4cd6e60d57c83b5f7b3a6de4497329de7822e316
Cr-Commit-Position: refs/heads/master@{#312042}

Powered by Google App Engine
This is Rietveld 408576698