Bug 1130210 - Add browser.search.showOneOffButtons value in telemetry UI, r=florian.
authorAbhilash Mhaisne <abhilashmhaisne@gmail.com>
Tue, 10 Feb 2015 12:49:18 +0100
changeset 242074 973bc28ad21fe5fd643b67335cea08839f08d6e5
parent 242073 d9adce0440820199d0a6b5f41d4995e0796706a6
child 242075 d8f641228a9b97246636fd94cf1da79d1438774e
push id634
push usermozilla@noorenberghe.ca
push dateTue, 10 Feb 2015 22:34:30 +0000
reviewersflorian
bugs1130210
milestone38.0a1
Bug 1130210 - Add browser.search.showOneOffButtons value in telemetry UI, r=florian.
browser/modules/BrowserUITelemetry.jsm
--- a/browser/modules/BrowserUITelemetry.jsm
+++ b/browser/modules/BrowserUITelemetry.jsm
@@ -561,17 +561,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;