Bug 1137483 - Add telemetry for items selected from the quick search bar. r=liuche
☠☠ backed out by 925dd58e0035 ☠ ☠
authorMichael Comella <michael.l.comella@gmail.com>
Tue, 21 Apr 2015 17:26:52 -0700
changeset 272993 f6c941bae29665c225bd919bddb50dfd596f66b3
parent 272992 94f0cc466288ae16a6107b475742e31b38b7c724
child 272994 22567ae1d44d9b6a5c078facd636feda49af98a0
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersliuche
bugs1137483
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1137483 - Add telemetry for items selected from the quick search bar. r=liuche
mobile/android/base/home/BrowserSearch.java
--- a/mobile/android/base/home/BrowserSearch.java
+++ b/mobile/android/base/home/BrowserSearch.java
@@ -612,16 +612,19 @@ public class BrowserSearch extends HomeF
             Log.e(LOGTAG, "Error getting search engine JSON", e);
         }
 
         filterSuggestions();
     }
 
     @Override
     public void onSearchBarClickListener(final SearchEngine searchEngine) {
+        Telemetry.sendUIEvent(TelemetryContract.Event.LOAD_URL, TelemetryContract.Method.LIST_ITEM,
+                "searchenginebar");
+
         mSearchListener.onSearch(searchEngine, mSearchTerm);
     }
 
     private void maybeSetSuggestClient(final String suggestTemplate, final boolean isPrivate) {
         if (mSuggestClient != null || isPrivate) {
             return;
         }