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

Issue 1365733005: Split captive portal metrics out of SSLErrorClassification (Closed)

Created:
5 years, 2 months ago by felt
Modified:
5 years, 2 months ago
CC:
asvitkine+watch_chromium.org, 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

Split captive portal metrics out of SSLErrorClassification SSLErrorClassification can be shared cross-platform if the Chrome-specific captive portal logic is moved to its own helper. This also is a nice clean separation of purposes, since the captive portal logic was fairly disjoint from the other work being done in SSLErrorClassification. Now the captive portal logic is handled as a metrics helper. I also made the ownership of the metrics helper clearer by changing to use a scoped_ptr. BUG=488673 R=estark@chromium.org TBR=mattm@chromium.org Committed: https://crrev.com/5a31c78de2d5a1829910ec09d86ec10ae16e5c4c Cr-Commit-Position: refs/heads/master@{#351195} Committed: https://crrev.com/c0a91fac22f1d3ff3f8d052eb5dbffa70ef9835f Cr-Commit-Position: refs/heads/master@{#351246} Committed: https://crrev.com/6913b84e23405fc529cf9a902700ac30a9de7403 Cr-Commit-Position: refs/heads/master@{#351358}

Patch Set 1 #

Patch Set 2 : Clean up before review #

Total comments: 11

Patch Set 3 : Changes for estark #

Patch Set 4 : Compiler error fix #

Patch Set 5 : Compiler error fix possibly for realsies #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -219 lines) Patch
M chrome/browser/interstitials/chrome_metrics_helper.h View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/interstitials/chrome_metrics_helper.cc View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/interstitials/security_interstitial_page.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/interstitials/security_interstitial_page.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ssl/bad_clock_blocking_page.cc View 1 2 chunks +8 lines, -6 lines 0 comments Download
A chrome/browser/ssl/captive_portal_metrics_recorder.h View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/ssl/captive_portal_metrics_recorder.cc View 1 2 3 4 1 chunk +120 lines, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.h View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.cc View 1 3 chunks +7 lines, -13 lines 0 comments Download
M chrome/browser/ssl/ssl_error_classification.h View 1 3 chunks +3 lines, -31 lines 0 comments Download
M chrome/browser/ssl/ssl_error_classification.cc View 6 chunks +10 lines, -120 lines 0 comments Download
M chrome/browser/ssl/ssl_error_classification_unittest.cc View 8 chunks +7 lines, -40 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/security_interstitials/core/metrics_helper.h View 1 chunk +4 lines, -1 line 0 comments Download
M components/security_interstitials/core/metrics_helper.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 34 (8 generated)
felt
estark, ptal
5 years, 2 months ago (2015-09-25 18:27:41 UTC) #1
estark
lgtm with a few nits https://codereview.chromium.org/1365733005/diff/20001/chrome/browser/interstitials/chrome_metrics_helper.cc File chrome/browser/interstitials/chrome_metrics_helper.cc (right): https://codereview.chromium.org/1365733005/diff/20001/chrome/browser/interstitials/chrome_metrics_helper.cc#newcode47 chrome/browser/interstitials/chrome_metrics_helper.cc:47: if (captive_portal_helper_.get()) no `.get()` ...
5 years, 2 months ago (2015-09-25 23:53:35 UTC) #2
felt
https://codereview.chromium.org/1365733005/diff/20001/chrome/browser/interstitials/chrome_metrics_helper.cc File chrome/browser/interstitials/chrome_metrics_helper.cc (right): https://codereview.chromium.org/1365733005/diff/20001/chrome/browser/interstitials/chrome_metrics_helper.cc#newcode47 chrome/browser/interstitials/chrome_metrics_helper.cc:47: if (captive_portal_helper_.get()) On 2015/09/25 23:53:34, estark wrote: > no ...
5 years, 2 months ago (2015-09-27 20:08:15 UTC) #3
felt
Can I please have OWNERS reviews for... mattm: safe_browsing/ isherman: histograms.xml And meacer@, a question ...
5 years, 2 months ago (2015-09-27 20:11:47 UTC) #5
Ilya Sherman
histograms.xml lgtm
5 years, 2 months ago (2015-09-28 01:55:57 UTC) #6
meacer
> Should we stop recording captive portal metrics for bad > clocks (because it's unnecessary), ...
5 years, 2 months ago (2015-09-28 17:50:12 UTC) #7
felt
On 2015/09/28 17:50:12, Mustafa Emre Acer wrote: > > Should we stop recording captive portal ...
5 years, 2 months ago (2015-09-28 17:58:27 UTC) #8
felt
Matt, if you don't object, I'm going to mark you as a TBR since the ...
5 years, 2 months ago (2015-09-28 19:47:04 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1365733005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1365733005/40001
5 years, 2 months ago (2015-09-28 19:48:30 UTC) #12
mattm
safe_browsing lgtm
5 years, 2 months ago (2015-09-28 22:54:15 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-09-28 23:06:36 UTC) #14
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/5a31c78de2d5a1829910ec09d86ec10ae16e5c4c Cr-Commit-Position: refs/heads/master@{#351195}
5 years, 2 months ago (2015-09-28 23:07:30 UTC) #15
dcheng
I'm not sure why, but the Android bots are not happy with this patch: In ...
5 years, 2 months ago (2015-09-28 23:52:37 UTC) #17
felt
On 2015/09/28 23:52:37, dcheng wrote: > I'm not sure why, but the Android bots are ...
5 years, 2 months ago (2015-09-29 00:45:44 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1365733005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1365733005/60001
5 years, 2 months ago (2015-09-29 01:03:16 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-09-29 02:49:44 UTC) #22
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/c0a91fac22f1d3ff3f8d052eb5dbffa70ef9835f Cr-Commit-Position: refs/heads/master@{#351246}
5 years, 2 months ago (2015-09-29 02:50:38 UTC) #23
yosin_UTC9
On 2015/09/29 02:50:38, commit-bot: I haz the power wrote: > Patchset 4 (id:??) landed as ...
5 years, 2 months ago (2015-09-29 10:48:24 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1365733005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1365733005/80001
5 years, 2 months ago (2015-09-29 17:15:34 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 2 months ago (2015-09-29 18:31:16 UTC) #28
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/6913b84e23405fc529cf9a902700ac30a9de7403 Cr-Commit-Position: refs/heads/master@{#351358}
5 years, 2 months ago (2015-09-29 18:32:58 UTC) #29
mdempsky
On 2015/09/29 10:48:24, Yosi_UTC9 wrote: > android_clang_dbg_recipe bots failed compilation: > > http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/126886 Why were ...
5 years, 2 months ago (2015-09-29 19:54:43 UTC) #30
felt
On 2015/09/29 19:54:43, mdempsky wrote: > On 2015/09/29 10:48:24, Yosi_UTC9 wrote: > > android_clang_dbg_recipe bots ...
5 years, 2 months ago (2015-09-29 19:58:39 UTC) #31
Ted C
On 2015/09/29 19:58:39, felt wrote: > On 2015/09/29 19:54:43, mdempsky wrote: > > On 2015/09/29 ...
5 years, 2 months ago (2015-09-29 20:36:53 UTC) #32
mdempsky
On 2015/09/29 19:58:39, felt wrote: > Apparently different flags are being passed to the trybots ...
5 years, 2 months ago (2015-09-29 20:53:56 UTC) #33
felt
5 years, 2 months ago (2015-09-29 20:56:16 UTC) #34
Message was sent while issue was closed.
On 2015/09/29 20:53:56, mdempsky wrote:
> On 2015/09/29 19:58:39, felt wrote:
> > Apparently different flags are being passed to the trybots vs the waterfall
> > bots, to make my life really difficult. See
> > https://code.google.com/p/chromium/issues/detail?id=529798
> 
> I don't think it's a trybot vs waterfall issue.  The android_clang_dbg_recipe
> trybots have been failing for me at
https://codereview.chromium.org/1372313004/
> seemingly because of this CL.  :(

I if-def'ed out the offending code, how is it still causing failures??

Powered by Google App Engine
This is Rietveld 408576698