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

Issue 23629046: Remove default case from autofill_metrics.cc::GetFieldTypeGroupMetric (Closed)

Created:
7 years, 3 months ago by Ilya Sherman
Modified:
7 years, 1 month ago
CC:
chromium-reviews, jar (doing other things), benquan, browser-components-watch_chromium.org, asvitkine+watch_chromium.org, Dane Wallinga, dyu1, Albert Bodenhamer, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

Remove default case from autofill_metrics.cc::GetFieldTypeGroupMetric BUG=267983 TEST=compiles R=estade@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223463

Patch Set 1 #

Patch Set 2 : Appease foolish compiler #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -6 lines) Patch
M components/autofill/core/browser/autofill_metrics.cc View 1 6 chunks +20 lines, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +3 lines, -0 lines 2 comments Download

Messages

Total messages: 8 (0 generated)
Ilya Sherman
7 years, 3 months ago (2013-09-14 03:53:27 UTC) #1
Evan Stade
lgtm On Sep 13, 2013 8:53 PM, <isherman@chromium.org> wrote: > Reviewers: Evan Stade, > > ...
7 years, 3 months ago (2013-09-16 15:46:17 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/23629046/1
7 years, 3 months ago (2013-09-16 18:00:03 UTC) #3
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-16 18:36:49 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/23629046/22001
7 years, 3 months ago (2013-09-16 19:42:18 UTC) #5
commit-bot: I haz the power
Change committed as 223463
7 years, 3 months ago (2013-09-16 23:18:45 UTC) #6
Jim Blackler
https://chromiumcodereview.appspot.com/23629046/diff/22001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://chromiumcodereview.appspot.com/23629046/diff/22001/tools/metrics/histograms/histograms.xml#newcode18647 tools/metrics/histograms/histograms.xml:18647: + <int value="45" label="Password, Unknown"/> Is it possible this ...
7 years, 1 month ago (2013-11-14 17:33:15 UTC) #7
Ilya Sherman
7 years, 1 month ago (2013-11-15 06:35:55 UTC) #8
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/23629046/diff/22001/tools/metrics/hist...
File tools/metrics/histograms/histograms.xml (right):

https://chromiumcodereview.appspot.com/23629046/diff/22001/tools/metrics/hist...
tools/metrics/histograms/histograms.xml:18647: +  <int value="45"
label="Password, Unknown"/>
On 2013/11/14 17:33:15, Jim Blackler wrote:
> Is it possible this should read '48' and not '45'?
> 
> The end of this list now reads..
> 
>   <int value="36" label="Credit card: name, Unknown"/>
>   <int value="37" label="Credit card: name, Match"/>
>   <int value="38" label="Credit card: name, Mismatch"/>
>   <int value="39" label="Credit card: number, Unknown"/>
>   <int value="40" label="Credit card: number, Match"/>
>   <int value="41" label="Credit card: number, Mismatch"/>
>   <int value="42" label="Credit card: date, Unknown"/>
>   <int value="43" label="Credit card: date, Match"/>
>   <int value="44" label="Credit card: date, Mismatch"/>
>   <int value="45" label="Password, Unknown"/>
>   <int value="46" label="Password, Match"/>
>   <int value="47" label="Password, Mismatch"/>
> 
> .. ie. with nothing between "Credit card: date" and "Password"
> 
> But enum FieldTypeGroupForMetrics reads...
> 
> enum FieldTypeGroupForMetrics {
> //..
>   CREDIT_CARD_NAME,
>   CREDIT_CARD_NUMBER,
>   CREDIT_CARD_DATE,
>   CREDIT_CARD_TYPE,
>   PASSWORD,
>   NUM_FIELD_TYPE_GROUPS_FOR_METRICS
> };
> 
> So it looks like we're missing three numbers for 'Credit card: Type" which
> should occupy the slots 45 to 47 and the Password metrics should occupy slots
48
> to 51.  Since I believe FieldTypeGroupForMetrics::CREDIT_CARD_TYPE = 15 (*3 =
> 45) and FieldTypeGroupForMetrics::PASSWORD = 16 (*3 = 48).
> 
> This would explain the mystery '48' type we are seeing on iOS metrics reports,
> see bug https://code.google.com/p/chromium/issues/detail?id=317749

Yes, I believe you are correct.  Thanks for catching that!

Powered by Google App Engine
This is Rietveld 408576698