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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/ntp/FakeMostVisitedSites.java

Issue 2136503002: NTP: Fix metrics recording race condition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android_uma
Patch Set: rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.ntp; 5 package org.chromium.chrome.browser.ntp;
6 6
7 import org.chromium.base.ThreadUtils; 7 import org.chromium.base.ThreadUtils;
8 import org.chromium.chrome.browser.profiles.MostVisitedSites; 8 import org.chromium.chrome.browser.profiles.MostVisitedSites;
9 import org.chromium.chrome.browser.profiles.Profile; 9 import org.chromium.chrome.browser.profiles.Profile;
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 public boolean isUrlBlacklisted(String url) { 66 public boolean isUrlBlacklisted(String url) {
67 return mBlacklistedUrls.contains(url); 67 return mBlacklistedUrls.contains(url);
68 } 68 }
69 69
70 @Override 70 @Override
71 public void recordTileTypeMetrics(int[] tileTypes, int[] sources) { 71 public void recordTileTypeMetrics(int[] tileTypes, int[] sources) {
72 // Metrics are stubbed out. 72 // Metrics are stubbed out.
73 } 73 }
74 74
75 @Override 75 @Override
76 public void recordOpenedMostVisitedItem(int index, int tileType) { 76 public void recordOpenedMostVisitedItem(int index, int tileType, int source) {
77 // Metrics are stubbed out. 77 // Metrics are stubbed out.
78 } 78 }
79 } 79 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698