Bug 1063748 - Follow-up: Add telemetry for Onboarding first run screen buttons. r=mfinkle, a=lmandel
authorChenxia Liu <liuche@mozilla.com>
Wed, 10 Sep 2014 17:54:22 -0700
changeset 224866 815df9795446a5ee5aaffcf92037002cb3558c65
parent 224865 633390f491396a05c6e5ff3f83574b3f45105807
child 224867 7ab5f992dec0036dcc1fd9a2e8edca71aa5e9c2c
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, lmandel
bugs1063748
milestone34.0a2
Bug 1063748 - Follow-up: Add telemetry for Onboarding first run screen buttons. r=mfinkle, a=lmandel
mobile/android/base/StartPane.java
--- a/mobile/android/base/StartPane.java
+++ b/mobile/android/base/StartPane.java
@@ -16,25 +16,27 @@ public class StartPane extends Activity 
         super.onCreate(bundle);
         setContentView(R.layout.onboard_start_pane);
 
         final Button accountButton = (Button) findViewById(R.id.button_account);
         accountButton.setOnClickListener(new OnClickListener() {
 
             @Override
             public void onClick(View v) {
+                Telemetry.sendUIEvent(TelemetryContract.Event.ACTION, TelemetryContract.Method.BUTTON, "firstrun-sync");
                 showAccountSetup();
             }
         });
 
         final Button browserButton = (Button) findViewById(R.id.button_browser);
         browserButton.setOnClickListener(new OnClickListener() {
 
             @Override
             public void onClick(View v) {
+                Telemetry.sendUIEvent(TelemetryContract.Event.ACTION, TelemetryContract.Method.BUTTON, "firstrun-browser");
                 showBrowser();
             }
         });
     }
 
     private void showBrowser() {
         // StartPane is on the stack above the browser, so just kill this activity.
         finish();