Bug 1137483 - Add telemetry for items selected from the quick search bar. r=liuche
☠☠ backed out by e32bd51ba9ea ☠ ☠
authorMichael Comella <michael.l.comella@gmail.com>
Tue, 21 Apr 2015 17:26:52 -0700
changeset 274015 a7ba18a83520fe460148f766b8cc38f0252bb908
parent 274014 399980ce108a47e41be77480eacf731a39e91ada
child 274016 501e46e3e348fdf8e503f330d40d538456d10544
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;
         }