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

Issue 12091086: [Autofill] Add UMA timing metrics for requestAutocomplete dialog. (Closed)

Created:
7 years, 10 months ago by Ilya Sherman
Modified:
7 years, 10 months ago
CC:
chromium-reviews, Raman Kakilate, benquan, dhollowa+watch_chromium.org, ahutter, browser-components-watch_chromium.org, dbeam+watch-autofill_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer, Ilya Sherman
Visibility:
Public.

Description

[Autofill] Add UMA timing metrics for requestAutocomplete dialog. Records the duration for which the requestAutocomplete dialog was open. Also, move a handful of classes into the autofill namespace. BUG=165570 TEST=unit_tests --gtest_filter=AutofillMetricsTest.RequestAutocompleteDialogClosed Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182528

Patch Set 1 #

Patch Set 2 : Moar vertical whitespace #

Total comments: 13

Patch Set 3 : Pass along dialog requester #

Total comments: 3

Patch Set 4 : Remove the "autocomplete" prefix #

Total comments: 8

Patch Set 5 : unittest -> browsertest #

Patch Set 6 : Expose ForTesting() methods on AutofillDialogView #

Patch Set 7 : Fix the test. #

Total comments: 12

Patch Set 8 : DialogRequester -> DialogType #

Total comments: 3

Patch Set 9 : Fix unit test compilation + better ForTesting() impls #

Patch Set 10 : Fix Android build #

Patch Set 11 : Re-upload... #

Total comments: 6

Patch Set 12 : Rebase #

Patch Set 13 : Rebase harder #

Unified diffs Side-by-side diffs Delta from patch set Stats (+376 lines, -51 lines) Patch
M chrome/browser/android/tab_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autocheckout_infobar_delegate.h View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autocheckout_infobar_delegate.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autocheckout_manager.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/autofill/autocheckout_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autocheckout_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +13 lines, -9 lines 0 comments Download
M chrome/browser/autofill/autofill_external_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_manager_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_metrics.h View 1 2 3 4 5 6 7 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_metrics.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +48 lines, -5 lines 0 comments Download
M chrome/browser/autofill/autofill_metrics_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -4 lines 0 comments Download
A chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +174 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_view.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/tab_autofill_manager_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_tab_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_dialog_views.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_dialog_views.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 33 (0 generated)
Ilya Sherman
7 years, 10 months ago (2013-01-31 07:48:25 UTC) #1
Albert Bodenhamer
https://chromiumcodereview.appspot.com/12091086/diff/4001/chrome/browser/autofill/autofill_metrics.cc File chrome/browser/autofill/autofill_metrics.cc (right): https://chromiumcodereview.appspot.com/12091086/diff/4001/chrome/browser/autofill/autofill_metrics.cc#newcode274 chrome/browser/autofill/autofill_metrics.cc:274: UMA_HISTOGRAM_LONG_TIMES("RequestAutocomplete.UiDuration", duration); What's the best way to split this ...
7 years, 10 months ago (2013-01-31 16:31:06 UTC) #2
Dan Beam
some optional nits https://chromiumcodereview.appspot.com/12091086/diff/4001/chrome/browser/autofill/autofill_metrics.h File chrome/browser/autofill/autofill_metrics.h (right): https://chromiumcodereview.appspot.com/12091086/diff/4001/chrome/browser/autofill/autofill_metrics.h#newcode33 chrome/browser/autofill/autofill_metrics.h:33: DIALOG_CANCELED // The user canceled out ...
7 years, 10 months ago (2013-01-31 19:47:15 UTC) #3
Ilya Sherman
Still need to build on a Views platform to chase down the memory errors in ...
7 years, 10 months ago (2013-02-01 09:55:17 UTC) #4
Dan Beam
https://chromiumcodereview.appspot.com/12091086/diff/1010/chrome/browser/autofill/autofill_manager_delegate.h File chrome/browser/autofill/autofill_manager_delegate.h (right): https://chromiumcodereview.appspot.com/12091086/diff/1010/chrome/browser/autofill/autofill_manager_delegate.h#newcode41 chrome/browser/autofill/autofill_manager_delegate.h:41: }; On 2013/02/01 09:55:17, Ilya Sherman wrote: > These ...
7 years, 10 months ago (2013-02-01 17:17:28 UTC) #5
Dan Beam
https://chromiumcodereview.appspot.com/12091086/diff/4001/chrome/browser/autofill/autofill_metrics.h File chrome/browser/autofill/autofill_metrics.h (right): https://chromiumcodereview.appspot.com/12091086/diff/4001/chrome/browser/autofill/autofill_metrics.h#newcode33 chrome/browser/autofill/autofill_metrics.h:33: DIALOG_CANCELED // The user canceled out of the dialog. ...
7 years, 10 months ago (2013-02-01 17:18:08 UTC) #6
Ilya Sherman
https://chromiumcodereview.appspot.com/12091086/diff/1010/chrome/browser/autofill/autofill_manager_delegate.h File chrome/browser/autofill/autofill_manager_delegate.h (right): https://chromiumcodereview.appspot.com/12091086/diff/1010/chrome/browser/autofill/autofill_manager_delegate.h#newcode41 chrome/browser/autofill/autofill_manager_delegate.h:41: }; On 2013/02/01 17:17:28, Dan Beam wrote: > On ...
7 years, 10 months ago (2013-02-02 01:22:13 UTC) #7
benquan
https://chromiumcodereview.appspot.com/12091086/diff/10001/chrome/browser/autofill/autocheckout_infobar_delegate.h File chrome/browser/autofill/autocheckout_infobar_delegate.h (right): https://chromiumcodereview.appspot.com/12091086/diff/10001/chrome/browser/autofill/autocheckout_infobar_delegate.h#newcode21 chrome/browser/autofill/autocheckout_infobar_delegate.h:21: namespace autofill { It's better to move this file ...
7 years, 10 months ago (2013-02-02 02:02:31 UTC) #8
Ilya Sherman
https://chromiumcodereview.appspot.com/12091086/diff/10001/chrome/browser/autofill/autocheckout_infobar_delegate.h File chrome/browser/autofill/autocheckout_infobar_delegate.h (right): https://chromiumcodereview.appspot.com/12091086/diff/10001/chrome/browser/autofill/autocheckout_infobar_delegate.h#newcode21 chrome/browser/autofill/autocheckout_infobar_delegate.h:21: namespace autofill { On 2013/02/02 02:02:31, benquan wrote: > ...
7 years, 10 months ago (2013-02-02 02:09:12 UTC) #9
Ilya Sherman
+Evan for review (or deferral of review) Now with a working test.
7 years, 10 months ago (2013-02-05 07:16:37 UTC) #10
Evan Stade
https://chromiumcodereview.appspot.com/12091086/diff/23001/chrome/browser/autofill/autofill_manager_delegate.h File chrome/browser/autofill/autofill_manager_delegate.h (right): https://chromiumcodereview.appspot.com/12091086/diff/23001/chrome/browser/autofill/autofill_manager_delegate.h#newcode36 chrome/browser/autofill/autofill_manager_delegate.h:36: enum DialogRequester { Not a fan of this name. ...
7 years, 10 months ago (2013-02-05 20:06:41 UTC) #11
Ilya Sherman
https://chromiumcodereview.appspot.com/12091086/diff/23001/chrome/browser/autofill/autofill_manager_delegate.h File chrome/browser/autofill/autofill_manager_delegate.h (right): https://chromiumcodereview.appspot.com/12091086/diff/23001/chrome/browser/autofill/autofill_manager_delegate.h#newcode36 chrome/browser/autofill/autofill_manager_delegate.h:36: enum DialogRequester { On 2013/02/05 20:06:41, Evan Stade wrote: ...
7 years, 10 months ago (2013-02-06 00:02:24 UTC) #12
Evan Stade
https://chromiumcodereview.appspot.com/12091086/diff/24022/chrome/browser/ui/views/autofill/autofill_dialog_views.cc File chrome/browser/ui/views/autofill/autofill_dialog_views.cc (right): https://chromiumcodereview.appspot.com/12091086/diff/24022/chrome/browser/ui/views/autofill/autofill_dialog_views.cc#newcode467 chrome/browser/ui/views/autofill/autofill_dialog_views.cc:467: void AutofillDialogViews::SubmitForTesting() { seems like this should be: if ...
7 years, 10 months ago (2013-02-06 00:29:32 UTC) #13
Ilya Sherman
https://chromiumcodereview.appspot.com/12091086/diff/24022/chrome/browser/ui/views/autofill/autofill_dialog_views.cc File chrome/browser/ui/views/autofill/autofill_dialog_views.cc (right): https://chromiumcodereview.appspot.com/12091086/diff/24022/chrome/browser/ui/views/autofill/autofill_dialog_views.cc#newcode467 chrome/browser/ui/views/autofill/autofill_dialog_views.cc:467: void AutofillDialogViews::SubmitForTesting() { On 2013/02/06 00:29:32, Evan Stade wrote: ...
7 years, 10 months ago (2013-02-06 00:41:34 UTC) #14
Evan Stade
probably the easiest thing to do is override the validation function in TestAutofillDialogController
7 years, 10 months ago (2013-02-06 00:46:22 UTC) #15
Ilya Sherman
https://chromiumcodereview.appspot.com/12091086/diff/24022/chrome/browser/ui/views/autofill/autofill_dialog_views.cc File chrome/browser/ui/views/autofill/autofill_dialog_views.cc (right): https://chromiumcodereview.appspot.com/12091086/diff/24022/chrome/browser/ui/views/autofill/autofill_dialog_views.cc#newcode467 chrome/browser/ui/views/autofill/autofill_dialog_views.cc:467: void AutofillDialogViews::SubmitForTesting() { On 2013/02/06 00:41:34, Ilya Sherman wrote: ...
7 years, 10 months ago (2013-02-06 01:45:28 UTC) #16
Evan Stade
lgtm
7 years, 10 months ago (2013-02-06 21:11:38 UTC) #17
Ilya Sherman
Scott, could you sanity check the c/b/ui/views and gypi changes?
7 years, 10 months ago (2013-02-06 21:46:33 UTC) #18
sky
LGTM
7 years, 10 months ago (2013-02-06 21:48:17 UTC) #19
Albert Bodenhamer
LGTM On Wed, Feb 6, 2013 at 1:48 PM, <sky@chromium.org> wrote: > LGTM > > ...
7 years, 10 months ago (2013-02-06 21:56:21 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/12091086/26025
7 years, 10 months ago (2013-02-06 22:11:29 UTC) #21
commit-bot: I haz the power
Failed to apply patch for chrome/browser/autofill/autocheckout_manager.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-06 22:11:36 UTC) #22
Dan Beam
https://chromiumcodereview.appspot.com/12091086/diff/26025/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://chromiumcodereview.appspot.com/12091086/diff/26025/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode29 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:29: : dialog_type_(static_cast<DialogType>(-1)), ^ what is this dark magic?
7 years, 10 months ago (2013-02-07 00:48:05 UTC) #23
Ilya Sherman
https://chromiumcodereview.appspot.com/12091086/diff/26025/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://chromiumcodereview.appspot.com/12091086/diff/26025/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode29 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:29: : dialog_type_(static_cast<DialogType>(-1)), On 2013/02/07 00:48:05, Dan Beam wrote: > ...
7 years, 10 months ago (2013-02-07 00:58:47 UTC) #24
Dan Beam
https://chromiumcodereview.appspot.com/12091086/diff/26025/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://chromiumcodereview.appspot.com/12091086/diff/26025/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode29 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:29: : dialog_type_(static_cast<DialogType>(-1)), On 2013/02/07 00:58:48, Ilya Sherman wrote: > ...
7 years, 10 months ago (2013-02-07 19:13:10 UTC) #25
Ilya Sherman
https://chromiumcodereview.appspot.com/12091086/diff/26025/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://chromiumcodereview.appspot.com/12091086/diff/26025/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode29 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:29: : dialog_type_(static_cast<DialogType>(-1)), On 2013/02/07 19:13:11, Dan Beam wrote: > ...
7 years, 10 months ago (2013-02-11 05:57:47 UTC) #26
Dan Beam
https://chromiumcodereview.appspot.com/12091086/diff/26025/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://chromiumcodereview.appspot.com/12091086/diff/26025/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode29 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:29: : dialog_type_(static_cast<DialogType>(-1)), On 2013/02/11 05:57:48, Ilya Sherman wrote: > ...
7 years, 10 months ago (2013-02-11 16:48:23 UTC) #27
benquan
https://chromiumcodereview.appspot.com/12091086/diff/26025/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://chromiumcodereview.appspot.com/12091086/diff/26025/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode29 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:29: : dialog_type_(static_cast<DialogType>(-1)), On 2013/02/11 16:48:23, Dan Beam wrote: > ...
7 years, 10 months ago (2013-02-14 02:46:54 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/12091086/34001
7 years, 10 months ago (2013-02-14 06:00:11 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/12091086/43002
7 years, 10 months ago (2013-02-14 06:26:48 UTC) #30
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests, content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=10573
7 years, 10 months ago (2013-02-14 09:14:08 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/12091086/43002
7 years, 10 months ago (2013-02-14 09:17:00 UTC) #32
commit-bot: I haz the power
7 years, 10 months ago (2013-02-14 20:32:34 UTC) #33
Message was sent while issue was closed.
Change committed as 182528

Powered by Google App Engine
This is Rietveld 408576698