diff options
author | Kristian Monsen <kristianm@google.com> | 2010-02-01 18:41:07 +0000 |
---|---|---|
committer | Kristian Monsen <kristianm@google.com> | 2010-02-01 18:41:07 +0000 |
commit | 0a1d838ccd16ac08300bb8ac89b61ee0c956a49b (patch) | |
tree | 4bb5159d0026d24484932c2ba9ad8c0af5fcd371 /src/com/android/browser/LogTag.java | |
parent | 58d56c6b5052faa86083965132cd51b1a9594d0e (diff) | |
download | android_packages_apps_Gello-0a1d838ccd16ac08300bb8ac89b61ee0c956a49b.tar.gz android_packages_apps_Gello-0a1d838ccd16ac08300bb8ac89b61ee0c956a49b.tar.bz2 android_packages_apps_Gello-0a1d838ccd16ac08300bb8ac89b61ee0c956a49b.zip |
Log when bookmarks are added
Log when the user add a bookmark, sending the url of the bookmark and how the bookmark was added
Diffstat (limited to 'src/com/android/browser/LogTag.java')
-rw-r--r-- | src/com/android/browser/LogTag.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/com/android/browser/LogTag.java b/src/com/android/browser/LogTag.java index 9658c6c1..2be31343 100644 --- a/src/com/android/browser/LogTag.java +++ b/src/com/android/browser/LogTag.java @@ -25,20 +25,23 @@ public class LogTag { * Log when the user is adding a new bookmark. * * @param url the url of the new bookmark. + * @param where the location from where the bookmark was added */ - public static void logBookmarkAdded(String url) { - EventLog.writeEvent(EventLogTags.BROWSER_BOOKMARK_ADDED, url); + public static void logBookmarkAdded(String url, String where) { + EventLog.writeEvent(EventLogTags.BROWSER_BOOKMARK_ADDED, url + "|" + + where); } /** * Log when a page has finished loading with how much * time the browser used to load the page. * - * @param url the heartbeat interval used. + * @param url the url of that page that finished loading. * @param duration the time the browser spent loading the page. */ public static void logPageFinishedLoading(String url, long duration) { - EventLog.writeEvent(EventLogTags.BROWSER_BOOKMARK_ADDED, url); + EventLog.writeEvent(EventLogTags.BROWSER_BOOKMARK_ADDED, url + "|" + + duration); } /** @@ -48,6 +51,7 @@ public class LogTag { * @param duration the time spent on the webpage. */ public static void logTimeOnPage(String url, long duration) { - EventLog.writeEvent(EventLogTags.BROWSER_BOOKMARK_ADDED, url); + EventLog.writeEvent(EventLogTags.BROWSER_BOOKMARK_ADDED, url + "|" + + duration); } } |