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

Issue 2930553002: Add UMA metric to track the time elapsed since a WebAPK was last launched (Closed)

Created:
3 years, 6 months ago by pkotwicz
Modified:
3 years, 5 months ago
CC:
chromium-reviews, dominickn+watch_chromium.org, vmpstr+watch_chromium.org, pkotwicz+watch_chromium.org, asvitkine+watch_chromium.org, agrieve+watch_chromium.org, danakj+watch_chromium.org, zpeng+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA metric to track the time elapsed since a WebAPK was last launched This CL also: Adds a new SharedPreferences property "has_been_launched" to track whether the WebAPK/Webapp has been launched from the home screen. BUG=730201 Test=WebApkIntegrationTest.*, WebappModeTest.* Review-Url: https://codereview.chromium.org/2930553002 Cr-Commit-Position: refs/heads/master@{#483485} Committed: https://chromium.googlesource.com/chromium/src/+/5c9311ed7789a0591420b9b4b46cab5519651caa

Patch Set 1 : Merge branch 'last_launched0' into last_launched #

Total comments: 7

Patch Set 2 : Merge branch 'master' into last_launched #

Total comments: 1

Patch Set 3 : Merge branch 'master' into last_launched #

Total comments: 13

Patch Set 4 : Merge branch 'master' into last_launched0 #

Total comments: 1

Patch Set 5 : Merge branch 'master' into last_launched0 #

Total comments: 1

Patch Set 6 : Merge branch 'master' into last_launched0 #

Total comments: 1

Patch Set 7 : Merge branch 'master' into last_launched2 #

Patch Set 8 : Merge branch 'master' into last_launched2 #

Patch Set 9 : Merge branch 'master' into last_launched2 #

Patch Set 10 : Merge branch 'master' into last_launched2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -12 lines) Patch
M base/android/java/src/org/chromium/base/metrics/RecordHistogram.java View 2 chunks +10 lines, -0 lines 0 comments Download
M base/android/record_histogram.cc View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/metrics/WebApkUma.java View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java View 1 2 3 4 5 6 7 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java View 1 2 3 4 4 chunks +17 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappRegistry.java View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebApkIntegrationTest.java View 1 2 3 4 5 6 7 8 4 chunks +69 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappModeTest.java View 1 2 3 4 5 6 7 8 9 2 chunks +24 lines, -0 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappDataStorageTest.java View 1 2 3 4 2 chunks +7 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (18 generated)
pkotwicz
Xi and Dominick can you please take a look? I added a new timestamp to ...
3 years, 6 months ago (2017-06-06 21:56:26 UTC) #2
dominickn
https://codereview.chromium.org/2930553002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java File chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java (right): https://codereview.chromium.org/2930553002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java#newcode83 chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java:83: if (storage == null || !storage.wasUsedRecently() This must use ...
3 years, 6 months ago (2017-06-07 05:00:54 UTC) #6
pkotwicz
Dominick, can you please take another look? https://codereview.chromium.org/2930553002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java File chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java (right): https://codereview.chromium.org/2930553002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java#newcode83 chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java:83: if (storage ...
3 years, 6 months ago (2017-06-08 01:14:00 UTC) #7
dominickn
https://codereview.chromium.org/2930553002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java File chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java (right): https://codereview.chromium.org/2930553002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java#newcode83 chrome/android/java/src/org/chromium/chrome/browser/ServiceTabLauncher.java:83: if (storage == null || !storage.wasUsedRecently() On 2017/06/08 01:14:00, ...
3 years, 6 months ago (2017-06-08 01:45:48 UTC) #8
pkotwicz
Dominick, can you please take another look? I have added a boolean SharedPreference "was_launched" in ...
3 years, 6 months ago (2017-06-08 04:34:28 UTC) #9
dominickn
https://codereview.chromium.org/2930553002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java (right): https://codereview.chromium.org/2930553002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java#newcode408 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java:408: onWillUpdateLastUsedTime(storage); It would be good if you could add ...
3 years, 6 months ago (2017-06-08 05:15:27 UTC) #10
Xi Han
https://codereview.chromium.org/2930553002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java (right): https://codereview.chromium.org/2930553002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java#newcode191 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java:191: WebApkUma.recordLaunchInterval(lastUsedMs - storage.getLastUsedTime()); I am confused here. Do you ...
3 years, 6 months ago (2017-06-09 14:55:35 UTC) #11
pkotwicz
Dominick and Xi can you please take another look? https://codereview.chromium.org/2930553002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java (right): https://codereview.chromium.org/2930553002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java#newcode191 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java:191: ...
3 years, 6 months ago (2017-06-12 20:34:46 UTC) #13
dominickn
Looks pretty good https://codereview.chromium.org/2930553002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java (right): https://codereview.chromium.org/2930553002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java#newcode408 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java:408: onWillUpdateLastUsedTime(storage); On 2017/06/12 20:34:46, pkotwicz wrote: ...
3 years, 6 months ago (2017-06-14 00:19:39 UTC) #14
pkotwicz
Dominick, can you please take another look? I have added testSetsHasBeenLaunchedOnFirstLaunch in WebappModeTest.java
3 years, 6 months ago (2017-06-14 02:16:19 UTC) #15
dominickn
lgtm In future, please upload rebases separately to make it easier to look at patch-to-patch ...
3 years, 6 months ago (2017-06-14 02:58:24 UTC) #16
Xi Han
lgtm https://codereview.chromium.org/2930553002/diff/160001/base/android/record_histogram.cc File base/android/record_histogram.cc (right): https://codereview.chromium.org/2930553002/diff/160001/base/android/record_histogram.cc#newcode330 base/android/record_histogram.cc:330: return samples->TotalCount(); Please remove |samples| and return histogram->SnapshotSamples()->TotalCount().
3 years, 6 months ago (2017-06-14 14:51:06 UTC) #17
pkotwicz
isherman@ for record_histogram.cc, RecordHistogram.java and histograms.xml
3 years, 6 months ago (2017-06-15 02:33:38 UTC) #19
Ilya Sherman
Metrics LGTM % a comment: https://codereview.chromium.org/2930553002/diff/180001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2930553002/diff/180001/tools/metrics/histograms/histograms.xml#newcode81727 tools/metrics/histograms/histograms.xml:81727: + homescreen. Please document ...
3 years, 6 months ago (2017-06-15 03:16:52 UTC) #21
pkotwicz
Yaron for base/android changes
3 years, 6 months ago (2017-06-23 20:16:10 UTC) #23
Yaron
lgtm
3 years, 6 months ago (2017-06-23 21:17:22 UTC) #24
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/2930553002/220001
3 years, 5 months ago (2017-06-27 18:09:45 UTC) #27
commit-bot: I haz the power
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/326718)
3 years, 5 months ago (2017-06-27 19:29:33 UTC) #29
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/2930553002/240001
3 years, 5 months ago (2017-06-28 22:33:05 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/299787)
3 years, 5 months ago (2017-06-29 01:00:49 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/2930553002/260001
3 years, 5 months ago (2017-06-29 19:47:39 UTC) #37
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 21:09:15 UTC) #40
Message was sent while issue was closed.
Committed patchset #10 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/5c9311ed7789a0591420b9b4b46c...

Powered by Google App Engine
This is Rietveld 408576698