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

Issue 2124903003: Record impressions/navigations only once per tile. (Closed)

Created:
4 years, 5 months ago by sfiera
Modified:
4 years, 5 months ago
Reviewers:
Marc Treib
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, pedrosimonetti+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Record impressions/navigations only once per tile. Track when we have logged an impression or navigation for a tile, then ignore it if we are asked to log an additional one for the same tile. If we detect that the user has returned to the NTP after navigating away, reset the tracker (and has_emitted_) so that we can collect stats again. BUG=625163, 626681 Committed: https://crrev.com/61b6eba8e654d433215a148f03f7eeac708c73ab Cr-Commit-Position: refs/heads/master@{#405751}

Patch Set 1 #

Patch Set 2 : #

Total comments: 24

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 5

Patch Set 7 : #

Total comments: 9

Patch Set 8 : #

Total comments: 1

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -68 lines) Patch
M chrome/browser/ui/webui/ntp/ntp_user_data_logger.h View 1 2 3 4 5 6 7 3 chunks +30 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc View 1 2 3 4 5 6 7 8 6 chunks +41 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_user_data_logger_unittest.cc View 1 2 3 4 5 6 7 3 chunks +129 lines, -62 lines 0 comments Download

Messages

Total messages: 49 (25 generated)
sfiera
See the long comment in the header and decide if it matches what you think ...
4 years, 5 months ago (2016-07-06 17:51:51 UTC) #1
sfiera
See the long comment in the header and decide if it matches what you think ...
4 years, 5 months ago (2016-07-06 17:52:15 UTC) #3
Marc Treib
On 2016/07/06 17:52:15, sfiera wrote: > See the long comment in the header and decide ...
4 years, 5 months ago (2016-07-07 10:06:29 UTC) #4
sfiera
How exactly are navigations used? I thought the idea was to compare them against impressions ...
4 years, 5 months ago (2016-07-07 10:54:42 UTC) #5
Marc Treib
On 2016/07/07 10:54:42, sfiera wrote: > How exactly are navigations used? I thought the idea ...
4 years, 5 months ago (2016-07-07 11:39:01 UTC) #6
sfiera
On 2016/07/07 11:39:01, Marc Treib wrote: > On 2016/07/07 10:54:42, sfiera wrote: > > How ...
4 years, 5 months ago (2016-07-07 12:18:06 UTC) #7
sfiera
#4 is now mostly implemented. We log stats when the user navigates away, and reset ...
4 years, 5 months ago (2016-07-11 16:44:57 UTC) #9
Marc Treib
On 2016/07/11 16:44:57, sfiera wrote: > #4 is now mostly implemented. We log stats when ...
4 years, 5 months ago (2016-07-12 08:17:39 UTC) #14
Marc Treib
https://codereview.chromium.org/2124903003/diff/20001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc File chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc (right): https://codereview.chromium.org/2124903003/diff/20001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc#newcode95 chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc:95: // detecting when the user leaves or returns to ...
4 years, 5 months ago (2016-07-12 08:17:47 UTC) #15
sfiera
https://codereview.chromium.org/2124903003/diff/20001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc File chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc (right): https://codereview.chromium.org/2124903003/diff/20001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc#newcode95 chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc:95: // detecting when the user leaves or returns to ...
4 years, 5 months ago (2016-07-12 08:37:33 UTC) #16
Marc Treib
https://codereview.chromium.org/2124903003/diff/20001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc File chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc (right): https://codereview.chromium.org/2124903003/diff/20001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc#newcode95 chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc:95: // detecting when the user leaves or returns to ...
4 years, 5 months ago (2016-07-12 08:58:47 UTC) #17
sfiera
https://codereview.chromium.org/2124903003/diff/20001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc File chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc (right): https://codereview.chromium.org/2124903003/diff/20001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc#newcode95 chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc:95: // detecting when the user leaves or returns to ...
4 years, 5 months ago (2016-07-12 09:08:58 UTC) #18
sfiera
Still haven't started looking at comments, but a few notes on the new behavior: - ...
4 years, 5 months ago (2016-07-13 09:49:31 UTC) #19
Marc Treib
On 2016/07/13 09:49:31, sfiera wrote: > Still haven't started looking at comments, but a few ...
4 years, 5 months ago (2016-07-13 09:55:29 UTC) #20
sfiera
https://codereview.chromium.org/2124903003/diff/20001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc File chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc (right): https://codereview.chromium.org/2124903003/diff/20001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc#newcode97 chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc:97: // TODO(sfiera): move to a world where the NTP ...
4 years, 5 months ago (2016-07-14 14:11:08 UTC) #28
Marc Treib
https://codereview.chromium.org/2124903003/diff/20001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc File chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc (right): https://codereview.chromium.org/2124903003/diff/20001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc#newcode95 chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc:95: // detecting when the user leaves or returns to ...
4 years, 5 months ago (2016-07-14 14:40:52 UTC) #29
sfiera
https://codereview.chromium.org/2124903003/diff/20001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc File chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc (right): https://codereview.chromium.org/2124903003/diff/20001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc#newcode141 chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc:141: if (position >= static_cast<int>(impression_was_logged_.size())) { On 2016/07/14 14:40:52, Marc ...
4 years, 5 months ago (2016-07-15 09:55:10 UTC) #32
Marc Treib
Final nits :) https://codereview.chromium.org/2124903003/diff/100001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc File chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc (right): https://codereview.chromium.org/2124903003/diff/100001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc#newcode221 chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc:221: number_of_tiles_ = 0; On 2016/07/15 09:55:10, ...
4 years, 5 months ago (2016-07-15 10:04:46 UTC) #35
sfiera
https://codereview.chromium.org/2124903003/diff/120001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc File chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc (right): https://codereview.chromium.org/2124903003/diff/120001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc#newcode219 chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc:219: has_client_side_suggestions_ = true; On 2016/07/15 10:04:46, Marc Treib wrote: ...
4 years, 5 months ago (2016-07-15 10:26:01 UTC) #36
Marc Treib
LGTM, thanks! https://codereview.chromium.org/2124903003/diff/120001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc File chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc (right): https://codereview.chromium.org/2124903003/diff/120001/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc#newcode219 chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc:219: has_client_side_suggestions_ = true; On 2016/07/15 10:26:00, sfiera ...
4 years, 5 months ago (2016-07-15 11:47:37 UTC) #41
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/2124903003/160001
4 years, 5 months ago (2016-07-15 11:53:25 UTC) #44
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 5 months ago (2016-07-15 13:12:43 UTC) #46
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 13:12:51 UTC) #47
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 13:15:21 UTC) #49
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/61b6eba8e654d433215a148f03f7eeac708c73ab
Cr-Commit-Position: refs/heads/master@{#405751}

Powered by Google App Engine
This is Rietveld 408576698