summaryrefslogtreecommitdiffstats
path: root/chrome/android/java
diff options
context:
space:
mode:
authormathp@chromium.org <mathp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-17 02:28:51 +0000
committermathp@chromium.org <mathp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-17 02:28:51 +0000
commit1d778e123f350ae56f6e84ae5e1a8706c53c658c (patch)
treee66be783952d613fc38413f931601f5bbd325a7e /chrome/android/java
parent865129dc08d7cbc5866734da924ab80ddf7208b9 (diff)
downloadchromium_src-1d778e123f350ae56f6e84ae5e1a8706c53c658c.zip
chromium_src-1d778e123f350ae56f6e84ae5e1a8706c53c658c.tar.gz
chromium_src-1d778e123f350ae56f6e84ae5e1a8706c53c658c.tar.bz2
Log several histograms on the New Tab Page regarding Most Visited thumbnails.
This meant bringing more functions back into MostVisitedSites, but not much new code per se, apart from incrementing the counters and logging them. A CL will follow to call OnLoadingComplete from the NewTabPage class. BUG=385159 TEST=Checked chrome://histograms/NewTabPage Review URL: https://codereview.chromium.org/331843005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277626 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/android/java')
-rw-r--r--chrome/android/java/src/org/chromium/chrome/browser/profiles/MostVisitedSites.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/profiles/MostVisitedSites.java b/chrome/android/java/src/org/chromium/chrome/browser/profiles/MostVisitedSites.java
index 85e43ce..da4c0e0 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/profiles/MostVisitedSites.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/profiles/MostVisitedSites.java
@@ -116,8 +116,16 @@ public class MostVisitedSites {
nativeBlacklistUrl(mNativeMostVisitedSites, url);
}
+ /**
+ * Called when the loading of the Most Visited page is complete.
+ */
+ public void onLoadingComplete() {
+ nativeOnLoadingComplete(mNativeMostVisitedSites);
+ }
+
private native long nativeInit(Profile profile);
private native void nativeDestroy(long nativeMostVisitedSites);
+ private native void nativeOnLoadingComplete(long nativeMostVisitedSites);
private native void nativeSetMostVisitedURLsObserver(long nativeMostVisitedSites,
MostVisitedURLsObserver observer, int numSites);
private native void nativeGetURLThumbnail(long nativeMostVisitedSites, String url,