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

Issue 2697473005: Improve the resolution of the menu item homescreen launch source metric. (Closed)

Created:
3 years, 10 months ago by dominickn
Modified:
3 years, 10 months ago
CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org, asvitkine+watch_chromium.org, agrieve+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve the resolution of the menu item homescreen launch source metric. This CL deprecates the SOURCE_ADD_TO_HOMESCREEN source for homescreen launch intents on Android. Three new buckets are added in its place: SOURCE_ADD_TO_HOMESCREEN_PWA, SOURCE_ADD_TO_HOMESCREEN_STANDALONE, and SOURCE_ADD_TO_HOMESCREEN_SHORTCUT. Existing shortcuts are mapped to either the STANDALONE or SHORTCUT sources, as it is impossible to properly distinguish PWAs from non-PWAs when added from the menu item prior to this CL. Following this CL, PWAs added from the menu item are explicitly tagged with SOURCE_ADD_TO_HOMESCREEN_PWA. BUG=690266 Review-Url: https://codereview.chromium.org/2697473005 Cr-Commit-Position: refs/heads/master@{#450902} Committed: https://chromium.googlesource.com/chromium/src/+/de938a8e39930cca0d2a1f8c96f2cdc9b15192de

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comment #

Total comments: 4

Patch Set 3 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -31 lines) Patch
M chrome/browser/android/metrics/launch_metrics.cc View 1 2 chunks +42 lines, -14 lines 0 comments Download
M chrome/browser/android/shortcut_info.h View 1 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/android/shortcut_info.cc View 2 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc View 1 2 3 chunks +14 lines, -8 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 39 (23 generated)
dominickn
PTAL thanks! dfalcantara: launch_metrics.cc pkotwicz: WebAPKs sanity check rkaplow: histograms
3 years, 10 months ago (2017-02-14 02:41:14 UTC) #4
rkaplow
lgtm https://codereview.chromium.org/2697473005/diff/1/chrome/browser/android/shortcut_info.h File chrome/browser/android/shortcut_info.h (right): https://codereview.chromium.org/2697473005/diff/1/chrome/browser/android/shortcut_info.h#newcode27 chrome/browser/android/shortcut_info.h:27: SOURCE_ADD_TO_HOMESCREEN = 1, may want to change to ...
3 years, 10 months ago (2017-02-14 03:58:29 UTC) #7
dominickn
Thanks! https://codereview.chromium.org/2697473005/diff/1/chrome/browser/android/shortcut_info.h File chrome/browser/android/shortcut_info.h (right): https://codereview.chromium.org/2697473005/diff/1/chrome/browser/android/shortcut_info.h#newcode27 chrome/browser/android/shortcut_info.h:27: SOURCE_ADD_TO_HOMESCREEN = 1, On 2017/02/14 03:58:29, rkaplow wrote: ...
3 years, 10 months ago (2017-02-14 04:29:23 UTC) #9
gone
lgtm https://codereview.chromium.org/2697473005/diff/20001/chrome/browser/android/metrics/launch_metrics.cc File chrome/browser/android/metrics/launch_metrics.cc (right): https://codereview.chromium.org/2697473005/diff/20001/chrome/browser/android/metrics/launch_metrics.cc#newcode98 chrome/browser/android/metrics/launch_metrics.cc:98: case ShortcutInfo::SOURCE_COUNT: Should SOURCE_COUNT just fall into default:?
3 years, 10 months ago (2017-02-14 19:44:51 UTC) #13
pkotwicz
https://codereview.chromium.org/2697473005/diff/20001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc File chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc (right): https://codereview.chromium.org/2697473005/diff/20001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc#newcode124 chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc:124: shortcut_info_.display = blink::WebDisplayModeStandalone; Nit: Can you please set the ...
3 years, 10 months ago (2017-02-14 19:47:11 UTC) #14
dominickn
Thanks! https://codereview.chromium.org/2697473005/diff/20001/chrome/browser/android/metrics/launch_metrics.cc File chrome/browser/android/metrics/launch_metrics.cc (right): https://codereview.chromium.org/2697473005/diff/20001/chrome/browser/android/metrics/launch_metrics.cc#newcode98 chrome/browser/android/metrics/launch_metrics.cc:98: case ShortcutInfo::SOURCE_COUNT: On 2017/02/14 19:44:51, dfalcantara (load balance ...
3 years, 10 months ago (2017-02-14 23:02:14 UTC) #16
dominickn
(FYI Peter: I'll wait for you to lg as well before landing)
3 years, 10 months ago (2017-02-15 05:46:38 UTC) #20
pkotwicz
LGTM. Thank you for adding the metric. It will be useful in determining how many ...
3 years, 10 months ago (2017-02-16 04:19:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2697473005/40001
3 years, 10 months ago (2017-02-16 04:22:56 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/367636)
3 years, 10 months ago (2017-02-16 05:25:42 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2697473005/40001
3 years, 10 months ago (2017-02-16 05:39:40 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_asan_rel_ng on ...
3 years, 10 months ago (2017-02-16 06:25:25 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2697473005/40001
3 years, 10 months ago (2017-02-16 06:28:50 UTC) #32
commit-bot: I haz the power
Exceeded global retry quota
3 years, 10 months ago (2017-02-16 08:33:20 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2697473005/40001
3 years, 10 months ago (2017-02-16 08:38:39 UTC) #36
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 08:51:54 UTC) #39
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/de938a8e39930cca0d2a1f8c96f2...

Powered by Google App Engine
This is Rietveld 408576698