Bug 1130210 - Add browser.search.showOneOffButtons value in telemetry UI. r=florian, a=sledru
authorAbhilash Mhaisne <abhilashmhaisne@gmail.com>
Tue, 10 Feb 2015 12:49:18 +0100
changeset 249702 eaa4f3c86f8b70aabd653e31e383d1b441df6ca0
parent 249701 4c12640bcc87b1796c121fd1c55dc533a3246c4c
child 249703 235d3fa4cd14d02b46648cf8471686744b991f66
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian, sledru
bugs1130210
milestone37.0a2
Bug 1130210 - Add browser.search.showOneOffButtons value in telemetry UI. r=florian, a=sledru
browser/modules/BrowserUITelemetry.jsm
--- a/browser/modules/BrowserUITelemetry.jsm
+++ b/browser/modules/BrowserUITelemetry.jsm
@@ -553,17 +553,17 @@ this.BrowserUITelemetry = {
       }
     }
     result.visibleTabs = visibleTabs;
     result.hiddenTabs = hiddenTabs;
 
     if (Components.isSuccessCode(searchResult)) {
       result.currentSearchEngine = Services.search.currentEngine.name;
     }
-
+    result.oneOffSearchEnabled = Services.prefs.getBoolPref("browser.search.showOneOffButtons");
     return result;
   },
 
   getToolbarMeasures: function() {
     let result = this._firstWindowMeasurements || {};
     result.countableEvents = this._countableEvents;
     result.durations = this._durations;
     return result;