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

Issue 2136503002: NTP: Fix metrics recording race condition (Closed)

Created:
4 years, 5 months ago by Marc Treib
Modified:
4 years, 5 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@android_uma
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

NTP: Fix metrics recording race condition The UI calls MostVisitedSites::RecordOpenedMostVisitedItem when an item is clicked. Before this CL, MostVisitedSites would get some info from its |current_suggestions_|, but those might have changed in the meantime. Now, all required info is passed into RecordOpenedMostVisitedItem instead. BUG=612160 Committed: https://crrev.com/87a0e130422e6427c19a69dd70f6511b95b0dac7 Cr-Commit-Position: refs/heads/master@{#405160}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -22 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/profiles/MostVisitedSites.java View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/ntp/FakeMostVisitedSites.java View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/ntp/most_visited_sites_bridge.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/ntp/most_visited_sites_bridge.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M components/ntp_tiles/most_visited_sites.h View 1 chunk +1 line, -1 line 0 comments Download
M components/ntp_tiles/most_visited_sites.cc View 1 chunk +6 lines, -12 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 14 (7 generated)
Marc Treib
PTAL!
4 years, 5 months ago (2016-07-08 11:48:46 UTC) #2
Bernhard Bauer
LGTM, but you could update the CL description to explain the race condition, so a ...
4 years, 5 months ago (2016-07-08 12:37:46 UTC) #3
Marc Treib
On 2016/07/08 12:37:46, Bernhard Bauer wrote: > LGTM, but you could update the CL description ...
4 years, 5 months ago (2016-07-08 12:44:09 UTC) #6
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/2136503002/40001
4 years, 5 months ago (2016-07-13 14:57:04 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-13 15:34:28 UTC) #11
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 15:34:39 UTC) #12
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 15:36:09 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/87a0e130422e6427c19a69dd70f6511b95b0dac7
Cr-Commit-Position: refs/heads/master@{#405160}

Powered by Google App Engine
This is Rietveld 408576698