|
|
Chromium Code Reviews|
Created:
4 years, 2 months ago by Jared Saul Modified:
4 years, 2 months ago CC:
chromium-reviews, rouslan+autofill_chromium.org, estade+watch_chromium.org, vabr+watchlistautofill_chromium.org, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionSeparate Autofill.CreditCardInfoBar into .Local and .Server histograms. Deprecate the original Autofill.CreditCardInfoBar histogram at the same time, since all traffic should go to one of the two sub-histograms.
BUG=654747
TEST=AutofillSaveCardInfoBarDelegateMobileTest (unit_tests_apk)
Committed: https://crrev.com/89f4c2373a8b7a4fa4f7029b34b4e1e8f3a2ad83
Cr-Commit-Position: refs/heads/master@{#426550}
Patch Set 1 : Fixed macro usage; separated into two tests; edited histograms.xml #
Total comments: 2
Patch Set 2 : Converted to histogram_suffixes #
Total comments: 6
Patch Set 3 : Resolving histograms.xml comment #Patch Set 4 : Add base=true value to histogram #
Messages
Total messages: 27 (12 generated)
mathp@chromium.org changed reviewers: + mathp@chromium.org
https://codereview.chromium.org/2434543003/diff/1/components/autofill/core/br... File components/autofill/core/browser/autofill_metrics.cc (right): https://codereview.chromium.org/2434543003/diff/1/components/autofill/core/br... components/autofill/core/browser/autofill_metrics.cc:265: UMA_HISTOGRAM_ENUMERATION("Autofill.CreditCardInfoBar" + destination, metric, This macro is caching at the call site (if you follow the implementation of UMA_HISTOGRAM_ENUMERATION) so it will "remember" the first version of the histogram that you logged. To fix this, just do: if (is_uploading) { UMA_HISTOGRAM_ENUMERATION(...Server); } else { UMA_HISTOGRAM_ENUMERATION(...Local); } You will see this pattern in the autofill_metrics.cc file as well. It's just a weird limitation of the metrics macro.
Patchset #1 (id:1) has been deleted
Description was changed from ========== Separate Autofill.CreditCardInfoBar into .Local and .Server BUG= ========== to ========== Separate Autofill.CreditCardInfoBar into .Local and .Server BUG=654747 TEST=Autofill (unit_tests_apk) ==========
Hi mathp, please review the whole patch. Thanks!
The CQ bit was checked by jsaul@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Separate Autofill.CreditCardInfoBar into .Local and .Server BUG=654747 TEST=Autofill (unit_tests_apk) ========== to ========== Separate Autofill.CreditCardInfoBar into .Local and .Server BUG=654747 TEST=AutofillSaveCardInfoBarDelegateMobileTest (unit_tests_apk) ==========
lgtm, Please also flesh our the change description to mention that Autofill.CreditCardInfoBar is deprecated.
Description was changed from ========== Separate Autofill.CreditCardInfoBar into .Local and .Server BUG=654747 TEST=AutofillSaveCardInfoBarDelegateMobileTest (unit_tests_apk) ========== to ========== Separate Autofill.CreditCardInfoBar into .Local and .Server histograms. Deprecate the original Autofill.CreditCardInfoBar histogram at the same time, since all traffic should go to one of the two sub-histograms. BUG=654747 TEST=AutofillSaveCardInfoBarDelegateMobileTest (unit_tests_apk) ==========
jsaul@google.com changed reviewers: + isherman@chromium.org
On 2016/10/19 21:28:12, Mathieu Perreault wrote: > lgtm, > > Please also flesh our the change description to mention that > Autofill.CreditCardInfoBar is deprecated. Done, thanks.
Hi isherman@, please review this patch for the change to tools/metrics/histograms/histograms.xml. Thanks!
https://codereview.chromium.org/2434543003/diff/20001/tools/metrics/histogram... File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2434543003/diff/20001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:3042: +</histogram> Could you use a histogram_suffixes element, and mark the original histogram as a "base" histogram?
https://codereview.chromium.org/2434543003/diff/20001/tools/metrics/histogram... File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2434543003/diff/20001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:3042: +</histogram> On 2016/10/19 22:04:16, Ilya Sherman wrote: > Could you use a histogram_suffixes element, and mark the original histogram as a > "base" histogram? Done, how's this?
https://codereview.chromium.org/2434543003/diff/40001/tools/metrics/histogram... File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2434543003/diff/40001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:3021: </histogram> Please add a base="true" attribute for this histogram (it's a brand new attribute, so there aren't a lot of examples yet, but there are a couple in this file). https://codereview.chromium.org/2434543003/diff/40001/tools/metrics/histogram... File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2434543003/diff/40001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:3019: + credit card info bar prompt. Converted to a base histogram as of 10/2016. nit: This "converted to a base histogram ..." text will show up for the suffixed histograms as well. I'd just omit it. I think that possibly you can list an empty suffix in histogram_suffixes and mark that suffix as obsolete with the given date, but I don't think it's super worth it.
https://codereview.chromium.org/2434543003/diff/40001/tools/metrics/histogram... File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2434543003/diff/40001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:3021: </histogram> On 2016/10/19 23:34:08, Ilya Sherman wrote: > Please add a base="true" attribute for this histogram (it's a brand new > attribute, so there aren't a lot of examples yet, but there are a couple in this > file). Apologies, but could you point out an example? I couldn't find one when I was looking earlier. I also just tried to do this, and presubmit checks fail with: ERROR:root:Unrecognized attribute "base" in tag "histogram" https://codereview.chromium.org/2434543003/diff/40001/tools/metrics/histogram... File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2434543003/diff/40001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:3019: + credit card info bar prompt. Converted to a base histogram as of 10/2016. On 2016/10/19 23:34:08, Ilya Sherman wrote: > nit: This "converted to a base histogram ..." text will show up for the suffixed > histograms as well. I'd just omit it. I think that possibly you can list an > empty suffix in histogram_suffixes and mark that suffix as obsolete with the > given date, but I don't think it's super worth it. Good point; removed.
https://codereview.chromium.org/2434543003/diff/40001/tools/metrics/histogram... File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2434543003/diff/40001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:3021: </histogram> On 2016/10/20 00:07:06, jsaul wrote: > On 2016/10/19 23:34:08, Ilya Sherman wrote: > > Please add a base="true" attribute for this histogram (it's a brand new > > attribute, so there aren't a lot of examples yet, but there are a couple in > this > > file). > > Apologies, but could you point out an example? I couldn't find one when I was > looking earlier. I also just tried to do this, and presubmit checks fail with: > ERROR:root:Unrecognized attribute "base" in tag "histogram" You might need to sync your client to pick up the change: https://codereview.chromium.org/2426473006/
https://codereview.chromium.org/2434543003/diff/40001/tools/metrics/histogram... File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2434543003/diff/40001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:3021: </histogram> On 2016/10/20 00:08:45, Ilya Sherman wrote: > On 2016/10/20 00:07:06, jsaul wrote: > > On 2016/10/19 23:34:08, Ilya Sherman wrote: > > > Please add a base="true" attribute for this histogram (it's a brand new > > > attribute, so there aren't a lot of examples yet, but there are a couple in > > this > > > file). > > > > Apologies, but could you point out an example? I couldn't find one when I was > > looking earlier. I also just tried to do this, and presubmit checks fail > with: > > ERROR:root:Unrecognized attribute "base" in tag "histogram" > > You might need to sync your client to pick up the change: > https://codereview.chromium.org/2426473006/ Hadn't synced since yesterday--that did the trick, thanks! Done.
metrics lgtm, thanks
The CQ bit was checked by jsaul@google.com
The patchset sent to the CQ was uploaded after l-g-t-m from mathp@chromium.org Link to the patchset: https://codereview.chromium.org/2434543003/#ps70001 (title: "Add base=true value to histogram")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Separate Autofill.CreditCardInfoBar into .Local and .Server histograms. Deprecate the original Autofill.CreditCardInfoBar histogram at the same time, since all traffic should go to one of the two sub-histograms. BUG=654747 TEST=AutofillSaveCardInfoBarDelegateMobileTest (unit_tests_apk) ========== to ========== Separate Autofill.CreditCardInfoBar into .Local and .Server histograms. Deprecate the original Autofill.CreditCardInfoBar histogram at the same time, since all traffic should go to one of the two sub-histograms. BUG=654747 TEST=AutofillSaveCardInfoBarDelegateMobileTest (unit_tests_apk) ==========
Message was sent while issue was closed.
Committed patchset #4 (id:70001)
Message was sent while issue was closed.
Description was changed from ========== Separate Autofill.CreditCardInfoBar into .Local and .Server histograms. Deprecate the original Autofill.CreditCardInfoBar histogram at the same time, since all traffic should go to one of the two sub-histograms. BUG=654747 TEST=AutofillSaveCardInfoBarDelegateMobileTest (unit_tests_apk) ========== to ========== Separate Autofill.CreditCardInfoBar into .Local and .Server histograms. Deprecate the original Autofill.CreditCardInfoBar histogram at the same time, since all traffic should go to one of the two sub-histograms. BUG=654747 TEST=AutofillSaveCardInfoBarDelegateMobileTest (unit_tests_apk) Committed: https://crrev.com/89f4c2373a8b7a4fa4f7029b34b4e1e8f3a2ad83 Cr-Commit-Position: refs/heads/master@{#426550} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/89f4c2373a8b7a4fa4f7029b34b4e1e8f3a2ad83 Cr-Commit-Position: refs/heads/master@{#426550} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
