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

Issue 2315273002: Measure usage metrics to prepare for adaptive fetching rates in M55 (Closed)

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

Description

Measure usage metrics to prepare for adaptive fetching rates in M55 In order to scale to 100% of users in M55, we need adaptive fetching rates for server-side suggestions on the new tab page. This CL implements reporting of usage metrics to UMA. We need to collect these metrics already in M54 so that we have enough data to define default parameters for the adaptive fetching rates in M55. Design doc: https://docs.google.com/a/google.com/document/d/1tDl2Dx_ZPnSyoe7hAe55mT2uTeXDaFVphqsWZEjp3EQ/edit?usp=sharing BUG=644716 Committed: https://crrev.com/e13510e5938155d4eb7b8a742919a11aa7f8556c Cr-Commit-Position: refs/heads/master@{#417336}

Patch Set 1 #

Total comments: 27

Patch Set 2 : After code review #1 #

Patch Set 3 : Rehauling the math after a discussion with Bernhard #

Patch Set 4 : Minor fixes and adding comments #

Patch Set 5 : Further polish #

Total comments: 8

Patch Set 6 : Bernhard's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -8 lines) Patch
M chrome/browser/android/ntp/ntp_snippets_bridge.cc View 4 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ntp_snippets/content_suggestions_service_factory.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M components/ntp_snippets/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.h View 1 5 chunks +10 lines, -1 line 0 comments Download
M components/ntp_snippets/content_suggestions_service.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service_unittest.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M components/ntp_snippets/pref_names.h View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M components/ntp_snippets/pref_names.cc View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A components/ntp_snippets/user_classifier.h View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download
A components/ntp_snippets/user_classifier.cc View 1 2 3 4 5 1 chunk +156 lines, -0 lines 0 comments Download
M ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc View 1 chunk +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (20 generated)
jkrcal
Bernhard, PTAL! Éric, PTAL at the iOS factory. Robert, PTAL at histograms.xml.
4 years, 3 months ago (2016-09-07 13:09:01 UTC) #2
Marc Treib
Some drive-by comments :) https://codereview.chromium.org/2315273002/diff/1/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2315273002/diff/1/chrome/browser/prefs/browser_prefs.cc#newcode535 chrome/browser/prefs/browser_prefs.cc:535: #if BUILDFLAG(ANDROID_JAVA_UI) Is this the ...
4 years, 3 months ago (2016-09-07 13:23:48 UTC) #4
rkaplow
https://codereview.chromium.org/2315273002/diff/1/components/ntp_snippets/user_classifier.cc File components/ntp_snippets/user_classifier.cc (right): https://codereview.chromium.org/2315273002/diff/1/components/ntp_snippets/user_classifier.cc#newcode18 components/ntp_snippets/user_classifier.cc:18: // TODO(jkrcal): Make all of this Finch configurable. nit, ...
4 years, 3 months ago (2016-09-07 13:33:10 UTC) #5
noyau (Ping after 24h)
lgtm ios lgtm.
4 years, 3 months ago (2016-09-07 13:44:05 UTC) #6
Bernhard Bauer
Could you add a link to the design doc to this CL? https://codereview.chromium.org/2315273002/diff/1/components/ntp_snippets/content_suggestions_service_unittest.cc File components/ntp_snippets/content_suggestions_service_unittest.cc ...
4 years, 3 months ago (2016-09-07 13:46:46 UTC) #7
jkrcal
Thanks! PTAL, again. https://codereview.chromium.org/2315273002/diff/1/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2315273002/diff/1/chrome/browser/prefs/browser_prefs.cc#newcode535 chrome/browser/prefs/browser_prefs.cc:535: #if BUILDFLAG(ANDROID_JAVA_UI) On 2016/09/07 13:23:48, Marc ...
4 years, 3 months ago (2016-09-07 14:19:08 UTC) #9
Bernhard Bauer
https://codereview.chromium.org/2315273002/diff/1/components/ntp_snippets/content_suggestions_service_unittest.cc File components/ntp_snippets/content_suggestions_service_unittest.cc (right): https://codereview.chromium.org/2315273002/diff/1/components/ntp_snippets/content_suggestions_service_unittest.cc#newcode209 components/ntp_snippets/content_suggestions_service_unittest.cc:209: /*history_service=*/nullptr, On 2016/09/07 14:19:07, jkrcal wrote: > On 2016/09/07 ...
4 years, 3 months ago (2016-09-07 17:21:13 UTC) #10
jkrcal
PTAL, again. https://codereview.chromium.org/2315273002/diff/1/components/ntp_snippets/content_suggestions_service_unittest.cc File components/ntp_snippets/content_suggestions_service_unittest.cc (right): https://codereview.chromium.org/2315273002/diff/1/components/ntp_snippets/content_suggestions_service_unittest.cc#newcode209 components/ntp_snippets/content_suggestions_service_unittest.cc:209: /*history_service=*/nullptr, On 2016/09/07 17:21:13, Bernhard Bauer wrote: ...
4 years, 3 months ago (2016-09-07 19:09:35 UTC) #11
jkrcal
Alexei, could you PTAL at histograms.xml instead of Robert (who is ooo)? I would still ...
4 years, 3 months ago (2016-09-07 20:34:10 UTC) #19
Bernhard Bauer
LGTM w/ nits: https://codereview.chromium.org/2315273002/diff/80001/components/ntp_snippets/user_classifier.cc File components/ntp_snippets/user_classifier.cc (right): https://codereview.chromium.org/2315273002/diff/80001/components/ntp_snippets/user_classifier.cc#newcode29 components/ntp_snippets/user_classifier.cc:29: const double kMaxHours = 7*24; Nit: ...
4 years, 3 months ago (2016-09-07 21:31:00 UTC) #20
jkrcal
Thanks, Berhnard! Robert / Alexei, PTAL at histograms.xml. https://codereview.chromium.org/2315273002/diff/80001/components/ntp_snippets/user_classifier.cc File components/ntp_snippets/user_classifier.cc (right): https://codereview.chromium.org/2315273002/diff/80001/components/ntp_snippets/user_classifier.cc#newcode29 components/ntp_snippets/user_classifier.cc:29: const ...
4 years, 3 months ago (2016-09-08 05:45:25 UTC) #24
Alexei Svitkine (slow)
lgtm
4 years, 3 months ago (2016-09-08 16:51:41 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/2315273002/100001
4 years, 3 months ago (2016-09-08 17:50:23 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-08 17:56:39 UTC) #33
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 17:59:44 UTC) #35
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e13510e5938155d4eb7b8a742919a11aa7f8556c
Cr-Commit-Position: refs/heads/master@{#417336}

Powered by Google App Engine
This is Rietveld 408576698