diff options
author | Gaming4JC <g4jc@bulletmail.org> | 2018-09-18 18:53:34 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@bulletmail.org> | 2018-09-18 18:53:34 -0400 |
commit | db0a338e3357c68eacae29c4719f6032e87eda79 (patch) | |
tree | 70475bf43622128856b6356a5ddc409b5029ef03 | |
parent | 72ca35606496b05519f4433fdb09c8611cc8bf3c (diff) | |
download | iceweasel-uxp-db0a338e3357c68eacae29c4719f6032e87eda79.tar.gz |
Remove telemetry from nsBrowserContentHandler.jsv2.1
-rw-r--r-- | components/nsBrowserContentHandler.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/components/nsBrowserContentHandler.js b/components/nsBrowserContentHandler.js index 44e567a..d6d500a 100644 --- a/components/nsBrowserContentHandler.js +++ b/components/nsBrowserContentHandler.js @@ -241,18 +241,7 @@ function openPreferences() { args); } -function logSystemBasedSearch(engine) { - var countId = (engine.identifier || ("other-" + engine.name)) + ".system"; - var count = Services.telemetry.getKeyedHistogramById("SEARCH_COUNTS"); - count.add(countId); -} - function doSearch(searchTerm, cmdLine) { - var engine = Services.search.defaultEngine; - logSystemBasedSearch(engine); - - var submission = engine.getSubmission(searchTerm, null, "system"); - // fill our nsIMutableArray with uri-as-wstring, null, null, postData var args = Components.classes["@mozilla.org/array;1"] .createInstance(Components.interfaces.nsIMutableArray); @@ -701,18 +690,6 @@ nsDefaultCommandLineHandler.prototype = { /* nsICommandLineHandler */ handle : function dch_handle(cmdLine) { - // The -url flag is inserted by the operating system when the default - // application handler is used. We check for default browser to remove - // instances where users explicitly decide to "open with" the browser. - // Note that users who launch firefox manually with the -url flag will - // get erroneously counted. - try { - if (cmdLine.findFlag("url", false) && - ShellService.isDefaultBrowser(false, false)) { - Services.telemetry.getHistogramById("FX_STARTUP_EXTERNAL_CONTENT_HANDLER").add(); - } - } catch (e) {} - var urilist = []; if (AppConstants.platform == "win") { |