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

Issue 1441393002: Add UMA to count the number of Google CAPTCHA pages shown and solved by users. (Closed)

Created:
5 years, 1 month ago by Matt Welsh
Modified:
5 years, 1 month ago
CC:
chromium-reviews, csharrison+watch_chromium.org, asvitkine+watch_chromium.org, loading-reviews+metrics_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA to count the number of Google CAPTCHA pages shown and solved by users. This is intended to track down problems where a large number of mobile users in certain countries are apparently seeing CAPTCHA pages. (http://b/23081866 for context.) I realize this may not be the ideal place for this code - happy for suggestions as to where else this might go. BUG=552470 Committed: https://crrev.com/71c7cacbdb9cd4fa161909a72a9157f574a2b775 Cr-Commit-Position: refs/heads/master@{#360011}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Changed to using histogram, updated test #

Total comments: 4

Patch Set 3 : Change histogram name and add helper function #

Total comments: 4

Patch Set 4 : Minor formatting changes. #

Patch Set 5 : Refactor to use PageLoadMetricsObserver interface. #

Patch Set 6 : Revert unnecessary code. #

Patch Set 7 : Adding missing files (whoops) #

Total comments: 15

Patch Set 8 : Minor cleanups #

Total comments: 3

Patch Set 9 : Fix nit #

Patch Set 10 : Rebasing #

Patch Set 11 : Rebasing #

Patch Set 12 : Small fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -0 lines) Patch
A chrome/browser/page_load_metrics/observers/google_captcha_observer.h View 1 2 3 4 5 6 7 8 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/page_load_metrics/observers/google_captcha_observer.cc View 1 2 3 4 5 6 7 1 chunk +65 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/page_load_metrics_observers_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/page_load_metrics_initialize.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M components/page_load_metrics/browser/metrics_web_contents_observer.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M components/page_load_metrics/browser/metrics_web_contents_observer.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +16 lines, -0 lines 0 comments Download
M components/page_load_metrics/browser/page_load_metrics_observer.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 56 (14 generated)
Matt Welsh
5 years, 1 month ago (2015-11-13 17:33:55 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/1441393002/diff/1/components/page_load_metrics/browser/metrics_web_contents_observer_unittest.cc File components/page_load_metrics/browser/metrics_web_contents_observer_unittest.cc (right): https://codereview.chromium.org/1441393002/diff/1/components/page_load_metrics/browser/metrics_web_contents_observer_unittest.cc#newcode683 components/page_load_metrics/browser/metrics_web_contents_observer_unittest.cc:683: { Nit: Can you make this a table driven ...
5 years, 1 month ago (2015-11-13 17:45:13 UTC) #5
Matt Welsh
PTAL! https://codereview.chromium.org/1441393002/diff/1/components/page_load_metrics/browser/metrics_web_contents_observer_unittest.cc File components/page_load_metrics/browser/metrics_web_contents_observer_unittest.cc (right): https://codereview.chromium.org/1441393002/diff/1/components/page_load_metrics/browser/metrics_web_contents_observer_unittest.cc#newcode683 components/page_load_metrics/browser/metrics_web_contents_observer_unittest.cc:683: { On 2015/11/13 17:45:12, Alexei Svitkine (slow) wrote: ...
5 years, 1 month ago (2015-11-13 19:37:16 UTC) #6
Alexei Svitkine (slow)
lg, just a couple more things https://codereview.chromium.org/1441393002/diff/20001/components/page_load_metrics/browser/metrics_web_contents_observer.cc File components/page_load_metrics/browser/metrics_web_contents_observer.cc (right): https://codereview.chromium.org/1441393002/diff/20001/components/page_load_metrics/browser/metrics_web_contents_observer.cc#newcode455 components/page_load_metrics/browser/metrics_web_contents_observer.cc:455: UMA_HISTOGRAM_ENUMERATION(kUMAGoogleCaptchaHistogram, GOOGLE_CAPTCHA_SHOWN, Nit: ...
5 years, 1 month ago (2015-11-13 19:41:57 UTC) #7
Matt Welsh
Thanks for the quick turnaround :-) https://codereview.chromium.org/1441393002/diff/20001/components/page_load_metrics/browser/metrics_web_contents_observer.cc File components/page_load_metrics/browser/metrics_web_contents_observer.cc (right): https://codereview.chromium.org/1441393002/diff/20001/components/page_load_metrics/browser/metrics_web_contents_observer.cc#newcode455 components/page_load_metrics/browser/metrics_web_contents_observer.cc:455: UMA_HISTOGRAM_ENUMERATION(kUMAGoogleCaptchaHistogram, GOOGLE_CAPTCHA_SHOWN, On ...
5 years, 1 month ago (2015-11-13 20:15:19 UTC) #8
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1441393002/diff/40001/components/page_load_metrics/browser/metrics_web_contents_observer.cc File components/page_load_metrics/browser/metrics_web_contents_observer.cc (right): https://codereview.chromium.org/1441393002/diff/40001/components/page_load_metrics/browser/metrics_web_contents_observer.cc#newcode456 components/page_load_metrics/browser/metrics_web_contents_observer.cc:456: if (IsGoogleCaptcha(navigation_handle->GetURL())) { Nit: No {}s https://codereview.chromium.org/1441393002/diff/40001/components/page_load_metrics/browser/metrics_web_contents_observer.cc#newcode504 components/page_load_metrics/browser/metrics_web_contents_observer.cc:504: ...
5 years, 1 month ago (2015-11-13 20:17:12 UTC) #9
Matt Welsh
https://codereview.chromium.org/1441393002/diff/40001/components/page_load_metrics/browser/metrics_web_contents_observer.cc File components/page_load_metrics/browser/metrics_web_contents_observer.cc (right): https://codereview.chromium.org/1441393002/diff/40001/components/page_load_metrics/browser/metrics_web_contents_observer.cc#newcode456 components/page_load_metrics/browser/metrics_web_contents_observer.cc:456: if (IsGoogleCaptcha(navigation_handle->GetURL())) { On 2015/11/13 20:17:12, Alexei Svitkine (slow) ...
5 years, 1 month ago (2015-11-13 20:26:02 UTC) #11
Charlie Harrison
On 2015/11/13 19:41:57, Alexei Svitkine (slow) wrote: > lg, just a couple more things > ...
5 years, 1 month ago (2015-11-13 21:17:10 UTC) #12
Matt Welsh
On 2015/11/13 21:17:10, csharrison wrote: > On 2015/11/13 19:41:57, Alexei Svitkine (slow) wrote: > > ...
5 years, 1 month ago (2015-11-13 21:59:35 UTC) #13
Bryan McQuade
On 2015/11/13 21:17:10, csharrison wrote: > On 2015/11/13 19:41:57, Alexei Svitkine (slow) wrote: > > ...
5 years, 1 month ago (2015-11-13 22:10:21 UTC) #14
Bryan McQuade
On 2015/11/13 21:17:10, csharrison wrote: > On 2015/11/13 19:41:57, Alexei Svitkine (slow) wrote: > > ...
5 years, 1 month ago (2015-11-13 22:10:21 UTC) #15
Matt Welsh
> +1 to doing this as a PageLoadMetricsObserver. Can you explain why, given that WebContentsObserver ...
5 years, 1 month ago (2015-11-13 22:25:39 UTC) #16
Charlie Harrison
On 2015/11/13 22:10:21, Bryan McQuade wrote: > On 2015/11/13 21:17:10, csharrison wrote: > > On ...
5 years, 1 month ago (2015-11-13 22:27:52 UTC) #17
Charlie Harrison
On 2015/11/13 22:27:52, csharrison wrote: > On 2015/11/13 22:10:21, Bryan McQuade wrote: > > On ...
5 years, 1 month ago (2015-11-13 22:32:09 UTC) #18
Bryan McQuade
On 2015/11/13 22:25:39, Matt Welsh wrote: > > +1 to doing this as a PageLoadMetricsObserver. ...
5 years, 1 month ago (2015-11-13 22:35:45 UTC) #19
Matt Welsh
Thanks Charles -- I am taking a stab at refactoring this code to move it ...
5 years, 1 month ago (2015-11-13 22:35:50 UTC) #20
Matt Welsh
5 years, 1 month ago (2015-11-13 22:45:18 UTC) #21
Matt Welsh
OK, take a look. Happy to add additional tests for the new Redirect functionality if ...
5 years, 1 month ago (2015-11-14 00:00:38 UTC) #22
Randy Smith (Not in Mondays)
Matt: Are you looking for review specifically from me, or was I one of several ...
5 years, 1 month ago (2015-11-14 00:05:56 UTC) #23
Matt Welsh
On 2015/11/14 00:05:56, rdsmith wrote: > Matt: Are you looking for review specifically from me, ...
5 years, 1 month ago (2015-11-14 00:07:20 UTC) #24
Randy Smith (Not in Mondays)
On 2015/11/14 00:07:20, Matt Welsh wrote: > On 2015/11/14 00:05:56, rdsmith wrote: > > Matt: ...
5 years, 1 month ago (2015-11-14 00:10:40 UTC) #25
Charlie Harrison
On 2015/11/14 00:10:40, rdsmith wrote: > On 2015/11/14 00:07:20, Matt Welsh wrote: > > On ...
5 years, 1 month ago (2015-11-14 00:35:09 UTC) #26
Matt Welsh
Sorry, added the missing files.
5 years, 1 month ago (2015-11-14 00:44:37 UTC) #27
Charlie Harrison
Looking good. https://codereview.chromium.org/1441393002/diff/120001/chrome/browser/page_load_metrics/observers/google_captcha_observer.cc File chrome/browser/page_load_metrics/observers/google_captcha_observer.cc (right): https://codereview.chromium.org/1441393002/diff/120001/chrome/browser/page_load_metrics/observers/google_captcha_observer.cc#newcode13 chrome/browser/page_load_metrics/observers/google_captcha_observer.cc:13: namespace { Nest the anonymous namespace within ...
5 years, 1 month ago (2015-11-14 01:19:55 UTC) #28
Randy Smith (Not in Mondays)
On 2015/11/14 00:35:09, csharrison wrote: > On 2015/11/14 00:10:40, rdsmith wrote: > > On 2015/11/14 ...
5 years, 1 month ago (2015-11-14 01:38:53 UTC) #29
Randy Smith (Not in Mondays)
Looks fine except for the separate/shared file inconsistency mentioned below, but I'd like to make ...
5 years, 1 month ago (2015-11-14 01:45:49 UTC) #30
Charlie Harrison
On 2015/11/14 01:45:49, rdsmith wrote: > Looks fine except for the separate/shared file inconsistency mentioned ...
5 years, 1 month ago (2015-11-14 01:59:49 UTC) #31
Randy Smith (Not in Mondays)
On 2015/11/14 01:59:49, csharrison wrote: > On 2015/11/14 01:45:49, rdsmith wrote: > > Looks fine ...
5 years, 1 month ago (2015-11-14 02:08:18 UTC) #32
Charlie Harrison
On 2015/11/14 02:08:18, rdsmith wrote: > On 2015/11/14 01:59:49, csharrison wrote: > > On 2015/11/14 ...
5 years, 1 month ago (2015-11-14 02:11:42 UTC) #33
Randy Smith (Not in Mondays)
Ok, thanks. LGTM.
5 years, 1 month ago (2015-11-14 02:18:44 UTC) #34
Alexei Svitkine (slow)
still lgtm https://codereview.chromium.org/1441393002/diff/120001/chrome/browser/page_load_metrics/observers/google_captcha_observer.h File chrome/browser/page_load_metrics/observers/google_captcha_observer.h (right): https://codereview.chromium.org/1441393002/diff/120001/chrome/browser/page_load_metrics/observers/google_captcha_observer.h#newcode11 chrome/browser/page_load_metrics/observers/google_captcha_observer.h:11: namespace google_captcha_observer { I'll leave it up ...
5 years, 1 month ago (2015-11-16 16:54:59 UTC) #35
Matt Welsh
Thanks for the comments, PTAL. https://codereview.chromium.org/1441393002/diff/120001/chrome/browser/page_load_metrics/observers/google_captcha_observer.cc File chrome/browser/page_load_metrics/observers/google_captcha_observer.cc (right): https://codereview.chromium.org/1441393002/diff/120001/chrome/browser/page_load_metrics/observers/google_captcha_observer.cc#newcode13 chrome/browser/page_load_metrics/observers/google_captcha_observer.cc:13: namespace { On 2015/11/14 ...
5 years, 1 month ago (2015-11-16 18:30:53 UTC) #36
Bryan McQuade
https://codereview.chromium.org/1441393002/diff/140001/chrome/browser/page_load_metrics/observers/google_captcha_observer.h File chrome/browser/page_load_metrics/observers/google_captcha_observer.h (right): https://codereview.chromium.org/1441393002/diff/140001/chrome/browser/page_load_metrics/observers/google_captcha_observer.h#newcode14 chrome/browser/page_load_metrics/observers/google_captcha_observer.h:14: bool IsGoogleCaptcha(const GURL& url); re: removing the namespace, could ...
5 years, 1 month ago (2015-11-16 18:58:55 UTC) #38
Charlie Harrison
lgtm % nit. https://codereview.chromium.org/1441393002/diff/120001/chrome/browser/page_load_metrics/observers/google_captcha_observer.cc File chrome/browser/page_load_metrics/observers/google_captcha_observer.cc (right): https://codereview.chromium.org/1441393002/diff/120001/chrome/browser/page_load_metrics/observers/google_captcha_observer.cc#newcode58 chrome/browser/page_load_metrics/observers/google_captcha_observer.cc:58: } // namespace google_captcha_observer On 2015/11/16 ...
5 years, 1 month ago (2015-11-16 19:12:38 UTC) #39
Matt Welsh
> I'm fine with the google_captcha_observer namespace. I may add another namespace > to all ...
5 years, 1 month ago (2015-11-16 19:14:47 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1441393002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1441393002/160001
5 years, 1 month ago (2015-11-16 19:17:56 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/123724) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 1 month ago (2015-11-16 19:20:17 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1441393002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1441393002/200001
5 years, 1 month ago (2015-11-17 00:28:34 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, no build URL)
5 years, 1 month ago (2015-11-17 00:57:48 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1441393002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1441393002/220001
5 years, 1 month ago (2015-11-17 04:20:00 UTC) #53
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 1 month ago (2015-11-17 05:35:18 UTC) #54
commit-bot: I haz the power
5 years, 1 month ago (2015-11-17 05:35:56 UTC) #55
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/71c7cacbdb9cd4fa161909a72a9157f574a2b775
Cr-Commit-Position: refs/heads/master@{#360011}

Powered by Google App Engine
This is Rietveld 408576698