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

Issue 2750503004: Add metric to record users opening a new NTP. (Closed)

Created:
3 years, 9 months ago by fhorschig
Modified:
3 years, 9 months ago
CC:
chromium-reviews, noyau+watch_chromium.org, asvitkine+watch_chromium.org, ntp-dev+reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add metric to record users returning to an NTP. Record the number of users that open a completely new NTP. In combination with the metric MobileNTPShown, this can help to figure out how many users potentially see a "snap change" of the contents, caused by screenshots made on leave. BUG=700918 Review-Url: https://codereview.chromium.org/2750503004 Cr-Commit-Position: refs/heads/master@{#457454} Committed: https://chromium.googlesource.com/chromium/src/+/bb383d154b568ef7aaf4e8d7c4056eb4f71a4ce0

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix major logic error #

Total comments: 4

Patch Set 3 : Observe ModelSelector to record new NTPs #

Total comments: 4

Patch Set 4 : Adjust description for action #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -0 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java View 1 2 3 chunks +23 lines, -0 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (16 generated)
fhorschig
Hi Michael, could you please have a look at this new metric? I want to ...
3 years, 9 months ago (2017-03-13 16:15:51 UTC) #2
fhorschig
Hi Steven, could you please take a look at the new action?
3 years, 9 months ago (2017-03-13 16:25:25 UTC) #4
Michael van Ouwerkerk
https://codereview.chromium.org/2750503004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java (right): https://codereview.chromium.org/2750503004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java#newcode513 chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java:513: if (mHasBeenShownBefore) { I don't understand the intention of ...
3 years, 9 months ago (2017-03-13 16:42:56 UTC) #7
dgn
https://codereview.chromium.org/2750503004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java (right): https://codereview.chromium.org/2750503004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java#newcode513 chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java:513: if (mHasBeenShownBefore) { nit: the java style is inline ...
3 years, 9 months ago (2017-03-13 16:46:11 UTC) #9
fhorschig
Thank you for pointing that error out! https://codereview.chromium.org/2750503004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java (right): https://codereview.chromium.org/2750503004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java#newcode513 chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java:513: if (mHasBeenShownBefore) ...
3 years, 9 months ago (2017-03-13 16:57:47 UTC) #10
Michael van Ouwerkerk
lgtm with nit https://codereview.chromium.org/2750503004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java (right): https://codereview.chromium.org/2750503004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java#newcode102 chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java:102: private boolean mHasBeenShownBefore; nit: rename to ...
3 years, 9 months ago (2017-03-13 17:04:15 UTC) #11
Marc Treib
LGTM, assuming you've verified that this actually works if the NTP got kicked out in ...
3 years, 9 months ago (2017-03-14 08:22:37 UTC) #13
Michael van Ouwerkerk
On 2017/03/14 08:22:37, Marc Treib wrote: > LGTM, assuming you've verified that this actually works ...
3 years, 9 months ago (2017-03-14 11:21:35 UTC) #14
fhorschig
On 2017/03/14 11:21:35, Michael van Ouwerkerk wrote: > On 2017/03/14 08:22:37, Marc Treib wrote: > ...
3 years, 9 months ago (2017-03-14 12:48:49 UTC) #15
fhorschig
Hi Michael, would you please take a look at the new approach to recording new ...
3 years, 9 months ago (2017-03-14 14:11:02 UTC) #16
Michael van Ouwerkerk
https://codereview.chromium.org/2750503004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java (right): https://codereview.chromium.org/2750503004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java#newcode327 chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java:327: public void onNewTabCreated(Tab tab) { This seems like a ...
3 years, 9 months ago (2017-03-14 16:07:37 UTC) #18
fhorschig
https://codereview.chromium.org/2750503004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java (right): https://codereview.chromium.org/2750503004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java#newcode327 chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageUma.java:327: public void onNewTabCreated(Tab tab) { On 2017/03/14 16:07:36, Michael ...
3 years, 9 months ago (2017-03-14 17:30:45 UTC) #19
Steven Holte
lgtm
3 years, 9 months ago (2017-03-14 22:29:56 UTC) #20
fhorschig
Hi Bernhard, would you please take a look at the changes affecting the ChromeActivity?
3 years, 9 months ago (2017-03-15 09:10:32 UTC) #22
Michael van Ouwerkerk
Thanks for the additional details Friedrich. This also lgtm.
3 years, 9 months ago (2017-03-15 10:49:25 UTC) #27
Bernhard Bauer
lgtm
3 years, 9 months ago (2017-03-16 15:50:43 UTC) #28
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/2750503004/60001
3 years, 9 months ago (2017-03-16 15:55:24 UTC) #31
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 16:34:20 UTC) #34
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/bb383d154b568ef7aaf4e8d7c405...

Powered by Google App Engine
This is Rietveld 408576698