Bug 986095 - Part 2: Track sharing article from Reader viewer r=rnewman a=sylvestre
authorMark Finkle <mfinkle@mozilla.com>
Thu, 01 May 2014 22:09:37 -0400
changeset 199125 d75417cae251cf4436196760223accc646715569
parent 199124 75f2bf79d6474ad212c6e8fb8ea54bf382fb7ec7
child 199126 9aa82a0b4dcfe8116e230eb1aaf8495f23b6124c
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman, sylvestre
bugs986095
milestone31.0a2
Bug 986095 - Part 2: Track sharing article from Reader viewer r=rnewman a=sylvestre
mobile/android/chrome/content/aboutReader.js
--- a/mobile/android/chrome/content/aboutReader.js
+++ b/mobile/android/chrome/content/aboutReader.js
@@ -317,16 +317,20 @@ AboutReader.prototype = {
     if (!this._article)
       return;
 
     gChromeWin.sendMessageToJava({
       type: "Reader:Share",
       url: this._article.url,
       title: this._article.title
     });
+
+    // Create a relative timestamp for telemetry
+    let uptime = Date.now() - Services.startup.getStartupInfo().linkerInitialized;
+    UITelemetry.addEvent("share.1", "list", uptime);
   },
 
   _setFontSize: function Reader_setFontSize(newFontSize) {
     let bodyClasses = this._doc.body.classList;
 
     if (this._fontSize > 0)
       bodyClasses.remove("font-size" + this._fontSize);