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

Issue 2808263004: Add a new WebAPK-specific app banner shortcut source. (Closed)

Created:
3 years, 8 months ago by dominickn
Modified:
3 years, 7 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/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a new WebAPK-specific app banner shortcut source. Currently, WebAPKs and legacy PWA shortcuts added from app banners are both recorded using the ShortcutSource::SOURCE_APP_BANNER bucket. This means it is impossible to determine what shortcut launches from banners are triggered for legacy PWAs compared to WebAPKs. This CL adds a new ShortcutSource enum bucket for WebAPKs added to the homescreen via an app banner. This means that WebAPKs installed from banners have an explicitly different source, allowing them to be differentiated in metrics. The legacy SOURCE_APP_BANNER bucket is still used for non-WebAPK PWA shortcuts, and will be reported for launches of legacy PWAs added prior to M59. BUG=691739 Review-Url: https://codereview.chromium.org/2808263004 Cr-Commit-Position: refs/heads/master@{#469576} Committed: https://chromium.googlesource.com/chromium/src/+/f197d9b5000564960a0b79babb804fad9c74aa01

Patch Set 1 #

Total comments: 6

Patch Set 2 : Move to AppBannerManagerAndroid #

Patch Set 3 : Address comments #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -11 lines) Patch
M chrome/browser/android/banners/app_banner_infobar_delegate_android.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/banners/app_banner_infobar_delegate_android.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/android/banners/app_banner_manager_android.cc View 1 2 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/android/shortcut_info.h View 1 chunk +16 lines, -1 line 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_manager.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 42 (23 generated)
dominickn
PTAL, thanks! Peter: I realised that we had a problem distinguishing between WebAPKs added from ...
3 years, 8 months ago (2017-04-12 04:11:55 UTC) #4
pkotwicz
On 2017/04/12 04:11:55, dominickn wrote: > PTAL, thanks! > > Peter: I realised that we ...
3 years, 8 months ago (2017-04-12 15:45:53 UTC) #7
pkotwicz
https://codereview.chromium.org/2808263004/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc File chrome/browser/android/banners/app_banner_infobar_delegate_android.cc (right): https://codereview.chromium.org/2808263004/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc#newcode234 chrome/browser/android/banners/app_banner_infobar_delegate_android.cc:234: shortcut_info_->UpdateSource(ShortcutInfo::SOURCE_APP_BANNER_WEBAPK); I would rather if this code was in ...
3 years, 8 months ago (2017-04-12 15:46:01 UTC) #8
dominickn
On 2017/04/12 15:46:01, pkotwicz wrote: > https://codereview.chromium.org/2808263004/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc > File chrome/browser/android/banners/app_banner_infobar_delegate_android.cc > (right): > > https://codereview.chromium.org/2808263004/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc#newcode234 ...
3 years, 8 months ago (2017-04-12 21:23:52 UTC) #9
pkotwicz
I think that this extra work is warranted. It is pretty hard to figure out ...
3 years, 8 months ago (2017-04-12 22:17:00 UTC) #10
Ilya Sherman
histograms.xml lgtm
3 years, 8 months ago (2017-04-12 22:20:53 UTC) #11
pkotwicz
Actually, a few higher level questions. For WebAPKs: - I don't think that ShortcutInfo::source() in ...
3 years, 8 months ago (2017-04-12 22:31:11 UTC) #12
dominickn
On 2017/04/12 22:31:11, pkotwicz wrote: > Actually, a few higher level questions. > > For ...
3 years, 8 months ago (2017-04-12 22:44:46 UTC) #13
pkotwicz
Launch.HomescreenSource tells us whether the WebAPK was launched from a notification or was launched from ...
3 years, 8 months ago (2017-04-13 01:19:18 UTC) #14
dominickn
On 2017/04/13 01:19:18, pkotwicz wrote: > Launch.HomescreenSource tells us whether the WebAPK was launched from ...
3 years, 8 months ago (2017-04-13 04:24:21 UTC) #15
dominickn
Sorry for the delay on this one. pkotwicz: how do you feel about landing this ...
3 years, 7 months ago (2017-05-03 00:26:04 UTC) #16
pkotwicz
+hanxi Let's do it right right away. I think that hanxi is blocked because she ...
3 years, 7 months ago (2017-05-03 17:47:30 UTC) #19
Xi Han
It would be nice if this CL can be landed soon:) https://codereview.chromium.org/2808263004/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc File chrome/browser/android/banners/app_banner_infobar_delegate_android.cc (right): ...
3 years, 7 months ago (2017-05-03 18:07:50 UTC) #20
dominickn
Thanks for the feedback, PTAL! https://codereview.chromium.org/2808263004/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc File chrome/browser/android/banners/app_banner_infobar_delegate_android.cc (right): https://codereview.chromium.org/2808263004/diff/1/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc#newcode234 chrome/browser/android/banners/app_banner_infobar_delegate_android.cc:234: shortcut_info_->UpdateSource(ShortcutInfo::SOURCE_APP_BANNER_WEBAPK); On 2017/05/03 18:07:50, ...
3 years, 7 months ago (2017-05-04 00:33:59 UTC) #21
Xi Han
lgtm!
3 years, 7 months ago (2017-05-04 13:42:18 UTC) #26
pkotwicz
LGTM with nits: Can you please pass |can_install_webapk_| to AppBannerInfoBarDelegateAndroid::Create() It is a bit silly ...
3 years, 7 months ago (2017-05-04 17:38:15 UTC) #27
dominickn
Thanks! https://codereview.chromium.org/2808263004/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/2808263004/diff/1/tools/metrics/histograms/histograms.xml#oldcode100392 tools/metrics/histograms/histograms.xml:100392: <int value="9" label="External intent"/> On 2017/05/04 17:38:15, pkotwicz ...
3 years, 7 months ago (2017-05-05 02:30:40 UTC) #36
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/2808263004/60001
3 years, 7 months ago (2017-05-05 02:32:27 UTC) #39
commit-bot: I haz the power
3 years, 7 months ago (2017-05-05 02:58:43 UTC) #42
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/f197d9b5000564960a0b79babb80...

Powered by Google App Engine
This is Rietveld 408576698