Add User Actions and adding more details to UMA metrics for overscroll navigation
One of the goals is to get more detailed information on gesture navigation
usage. Another is to run a Finch experiment comparing the current gesture
navigation UI agains the new MD gesture navigation UI implemented in
https://codereview.chromium.org/2656463002/
UMA changes: instead of simply logging navigation direction, we now also log the
source (touch screen vs. trackpad) for each interaction.
User Actions: four new actions added:
- Overscroll_Navigated.Back
- Overscroll_Navigated.Forward
- Overscroll_Cancelled.Back
- Overscroll_Cancelled.Forward
BUG=668296
Review-Url: https://codereview.chromium.org/2698673006
Cr-Commit-Position: refs/heads/master@{#454342}
Committed: https://chromium.googlesource.com/chromium/src/+/09f0d64a9f882c2957469e72a05d7ad85bc35eff
3 years, 9 months ago
(2017-02-23 19:19:10 UTC)
#14
Thanks. LGTM
https://codereview.chromium.org/2698673006/diff/1/content/browser/renderer_ho...
File content/browser/renderer_host/overscroll_controller.cc (right):
https://codereview.chromium.org/2698673006/diff/1/content/browser/renderer_ho...
content/browser/renderer_host/overscroll_controller.cc:373: new_mode,
is_touchpad ? OVERSCROLL_TOUCHPAD : OVERSCROLL_TOUCHSCREEN);
On 2017/02/23 02:59:42, mfomitchev wrote:
> On 2017/02/21 20:47:58, mohsen wrote:
> > Can the new_mode be NONE? If yes, can the source be non-NONE?
>
> Yes. The contract only enforces that source is non-NONE when mode is non-NONE.
> It says nothing about source when mode is NONE. FWIW, I wish we could always
> supply valid source, but it is a little tricky and there are some edge cases.
It
> doesn't seem worth the effort.
Acknowledged.
https://codereview.chromium.org/2698673006/diff/1/content/browser/web_content...
File content/browser/web_contents/aura/overscroll_navigation_overlay.cc (right):
https://codereview.chromium.org/2698673006/diff/1/content/browser/web_content...
content/browser/web_contents/aura/overscroll_navigation_overlay.cc:66:
UMA_HISTOGRAM_ENUMERATION("Overscroll.Cancelled3",
On 2017/02/23 02:59:42, mfomitchev wrote:
> On 2017/02/21 20:47:58, mohsen wrote:
> > Is there a "Cancelled2" or you just want to name this similar to "Started3"
> and
> > "Navigated3"?
>
> Yes - it seems less confusing this way.
Acknowledged.
https://codereview.chromium.org/2698673006/diff/1/content/browser/web_content...
File content/browser/web_contents/aura/uma_navigation_type.h (right):
https://codereview.chromium.org/2698673006/diff/1/content/browser/web_content...
content/browser/web_contents/aura/uma_navigation_type.h:9: enum
UmaNavigationType {
On 2017/02/23 02:59:42, mfomitchev wrote:
> On 2017/02/21 20:47:58, mohsen wrote:
> > "enum class" here, too.
>
> If we use enum class here, we have to use static_cast<int> everywhere in
> UMA_HISTOGRAM_ENUMERATIONs. Given that this enum is mostly for
> UMA_HISTOGRAM_ENUMERATIONs, it seems it's better to use old-style enums with
> implicit conversion here. Otherwise the code readability suffers.
Acknowledged.
https://codereview.chromium.org/2698673006/diff/60001/content/browser/web_con...
File content/browser/web_contents/aura/gesture_nav_simple.cc (right):
https://codereview.chromium.org/2698673006/diff/60001/content/browser/web_con...
content/browser/web_contents/aura/gesture_nav_simple.cc:394:
OVERSCROLL_CONFIG_HORIZ_THRESHOLD_START_TOUCHSCREEN);
nit: I would put conditional ternary operator inside GetOverscrollConfig() to
avoid typing GetOverscrollConfig() twice!
https://codereview.chromium.org/2698673006/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2698673006/diff/80001/tools/metrics/histograms/histograms.xml#oldcode43409 tools/metrics/histograms/histograms.xml:43409: -<histogram name="Overscroll.Navigated" enum="OverscrollMode"> On 2017/02/25 01:33:27, Steven Holte wrote: ...
3 years, 9 months ago
(2017-02-25 03:40:12 UTC)
#25
https://codereview.chromium.org/2698673006/diff/80001/tools/metrics/histogram...
File tools/metrics/histograms/histograms.xml (left):
https://codereview.chromium.org/2698673006/diff/80001/tools/metrics/histogram...
tools/metrics/histograms/histograms.xml:43409: -<histogram
name="Overscroll.Navigated" enum="OverscrollMode">
On 2017/02/25 01:33:27, Steven Holte wrote:
> Don't delete the old histograms.
Did you note that the histograms I am removing have been deprecated since Chrome
44? It's been almost two years, I thought it would be okay to get rid of them? I
guess it may be best to do it in a different CL either way, especially because
the diff looks confusing.
3 years, 9 months ago
(2017-02-27 20:19:18 UTC)
#26
https://codereview.chromium.org/2698673006/diff/80001/tools/metrics/histogram...
File tools/metrics/histograms/histograms.xml (left):
https://codereview.chromium.org/2698673006/diff/80001/tools/metrics/histogram...
tools/metrics/histograms/histograms.xml:43409: -<histogram
name="Overscroll.Navigated" enum="OverscrollMode">
On 2017/02/25 03:40:11, mfomitchev wrote:
> On 2017/02/25 01:33:27, Steven Holte wrote:
> > Don't delete the old histograms.
>
> Did you note that the histograms I am removing have been deprecated since
Chrome
> 44? It's been almost two years, I thought it would be okay to get rid of them?
I
> guess it may be best to do it in a different CL either way, especially because
> the diff looks confusing.
I don't think we have any guidelines for when obsolete histograms are safe to
remove, but once we finally add some better handling for them we'll probably
just be removing all of them from this file, so I think it's simplest just to
leave them in for now.
mfomitchev
On 2017/02/27 20:19:18, Steven Holte wrote: > https://codereview.chromium.org/2698673006/diff/80001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (left): > > https://codereview.chromium.org/2698673006/diff/80001/tools/metrics/histograms/histograms.xml#oldcode43409 ...
3 years, 9 months ago
(2017-02-27 20:28:57 UTC)
#27
On 2017/02/27 20:19:18, Steven Holte wrote:
>
https://codereview.chromium.org/2698673006/diff/80001/tools/metrics/histogram...
> File tools/metrics/histograms/histograms.xml (left):
>
>
https://codereview.chromium.org/2698673006/diff/80001/tools/metrics/histogram...
> tools/metrics/histograms/histograms.xml:43409: -<histogram
> name="Overscroll.Navigated" enum="OverscrollMode">
> On 2017/02/25 03:40:11, mfomitchev wrote:
> > On 2017/02/25 01:33:27, Steven Holte wrote:
> > > Don't delete the old histograms.
> >
> > Did you note that the histograms I am removing have been deprecated since
> Chrome
> > 44? It's been almost two years, I thought it would be okay to get rid of
them?
> I
> > guess it may be best to do it in a different CL either way, especially
because
> > the diff looks confusing.
>
> I don't think we have any guidelines for when obsolete histograms are safe to
> remove, but once we finally add some better handling for them we'll probably
> just be removing all of them from this file, so I think it's simplest just to
> leave them in for now.
Ok, SG, thanks.
The latest patch doesn't remove any of the histograms. Can you please take
another look?
Steven Holte
thanks, lgtm
3 years, 9 months ago
(2017-02-27 23:21:21 UTC)
#28
thanks, lgtm
sadrul
lgtm https://codereview.chromium.org/2698673006/diff/100001/content/browser/renderer_host/overscroll_controller.cc File content/browser/renderer_host/overscroll_controller.cc (right): https://codereview.chromium.org/2698673006/diff/100001/content/browser/renderer_host/overscroll_controller.cc#newcode419 content/browser/renderer_host/overscroll_controller.cc:419: if (overscroll_mode_ == mode) Can this DCHECK that ...
3 years, 9 months ago
(2017-03-01 21:18:35 UTC)
#29
3 years, 9 months ago
(2017-03-01 23:47:14 UTC)
#33
+creis@ for content/browser/BUILD.gn
mfomitchev
Description was changed from ========== Add User Actions and adding more details to UMA metrics ...
3 years, 9 months ago
(2017-03-01 23:47:50 UTC)
#34
Description was changed from
==========
Add User Actions and adding more details to UMA metrics for overscroll
navigation
One of the goals is to get more detailed information on gesture navigation
usage. Another is to run a Finch experiment comparing the current gesture
navigation UI agains the new MD gesture navigation UI implemented in
https://codereview.chromium.org/2656463002/
UMA changes: instead of simply logging navigation direction, we now also log the
source (touch screen vs. trackpad) for each interaction.
User Actions: four new actions added:
- Overscroll_Navigated.Back
- Overscroll_Navigated.Forward
- Overscroll_Cancelled.Back
- Overscroll_Cancelled.Forward
BUG=668296
==========
to
==========
Add User Actions and adding more details to UMA metrics for overscroll
navigation
One of the goals is to get more detailed information on gesture navigation
usage. Another is to run a Finch experiment comparing the current gesture
navigation UI agains the new MD gesture navigation UI implemented in
https://codereview.chromium.org/2656463002/
UMA changes: instead of simply logging navigation direction, we now also log the
source (touch screen vs. trackpad) for each interaction.
User Actions: four new actions added:
- Overscroll_Navigated.Back
- Overscroll_Navigated.Forward
- Overscroll_Cancelled.Back
- Overscroll_Cancelled.Forward
BUG=668296
==========
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/242645)
3 years, 9 months ago
(2017-03-02 07:27:11 UTC)
#43
CQ is committing da patch. Bot data: {"patchset_id": 140001, "attempt_start_ts": 1488480724060500, "parent_rev": "30ee1086df7c132ecafae15534946181b03b315c", "commit_rev": "09f0d64a9f882c2957469e72a05d7ad85bc35eff"}
3 years, 9 months ago
(2017-03-02 19:40:12 UTC)
#46
CQ is committing da patch.
Bot data: {"patchset_id": 140001, "attempt_start_ts": 1488480724060500,
"parent_rev": "30ee1086df7c132ecafae15534946181b03b315c", "commit_rev":
"09f0d64a9f882c2957469e72a05d7ad85bc35eff"}
commit-bot: I haz the power
Description was changed from ========== Add User Actions and adding more details to UMA metrics ...
3 years, 9 months ago
(2017-03-02 19:40:49 UTC)
#47
Message was sent while issue was closed.
Description was changed from
==========
Add User Actions and adding more details to UMA metrics for overscroll
navigation
One of the goals is to get more detailed information on gesture navigation
usage. Another is to run a Finch experiment comparing the current gesture
navigation UI agains the new MD gesture navigation UI implemented in
https://codereview.chromium.org/2656463002/
UMA changes: instead of simply logging navigation direction, we now also log the
source (touch screen vs. trackpad) for each interaction.
User Actions: four new actions added:
- Overscroll_Navigated.Back
- Overscroll_Navigated.Forward
- Overscroll_Cancelled.Back
- Overscroll_Cancelled.Forward
BUG=668296
==========
to
==========
Add User Actions and adding more details to UMA metrics for overscroll
navigation
One of the goals is to get more detailed information on gesture navigation
usage. Another is to run a Finch experiment comparing the current gesture
navigation UI agains the new MD gesture navigation UI implemented in
https://codereview.chromium.org/2656463002/
UMA changes: instead of simply logging navigation direction, we now also log the
source (touch screen vs. trackpad) for each interaction.
User Actions: four new actions added:
- Overscroll_Navigated.Back
- Overscroll_Navigated.Forward
- Overscroll_Cancelled.Back
- Overscroll_Cancelled.Forward
BUG=668296
Review-Url: https://codereview.chromium.org/2698673006
Cr-Commit-Position: refs/heads/master@{#454342}
Committed:
https://chromium.googlesource.com/chromium/src/+/09f0d64a9f882c2957469e72a05d...
==========
commit-bot: I haz the power
Committed patchset #7 (id:140001) as https://chromium.googlesource.com/chromium/src/+/09f0d64a9f882c2957469e72a05d7ad85bc35eff
3 years, 9 months ago
(2017-03-02 19:40:51 UTC)
#48
Issue 2698673006: Add User Actions and adding more details to UMA metrics for overscroll navigation
(Closed)
Created 3 years, 10 months ago by mfomitchev
Modified 3 years, 9 months ago
Reviewers: mohsen, sadrul, holte, Steven Holte, dgozman
Base URL:
Comments: 23