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 228253 973bc28ad21fe5fd643b67335cea08839f08d6e5
parent 228252 d9adce0440820199d0a6b5f41d4995e0796706a6
child 228254 d8f641228a9b97246636fd94cf1da79d1438774e
push id11255
push userflorian@queze.net
push dateTue, 10 Feb 2015 11:49:52 +0000
treeherderfx-team@973bc28ad21f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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;