Closed Bug 1681382 Opened 5 years ago Closed 5 years ago

Simplify calls into BrowserSearchTelemetry

Categories

(Firefox :: Search, task, P2)

task
Points:
3

Tracking

()

RESOLVED FIXED
85 Branch
Iteration:
85.2 - Nov 30 - Dec 13
Tracking Status
firefox85 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(2 files)

As part of the general search telemetry cleanup, I want to simplify some of the calls into the new BrowserSearchTelemetry (created in bug 1680735):

  • There is a recordSearchSelectedResultMethod and a recordUrlbarSelectedResultMethod, both of these forward into the same internal function. We can simply pass a parameter instead and save the complexity.
  • recordSearch is only called from BrowserSearch (in browser.js), the two functions there are basically forwarders. We should just call directly to BrowserSearchTelemetry.
Blocks: 1681707
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a9df61e2ab85 Merge BrowserSearchTelemetry.record{Search|Urlbar}SelectedResultMethod functions into one. r=daleharvey https://hg.mozilla.org/integration/autoland/rev/66a4a0e2a9b1 Drop BrowserSearch.record*SearchInTelemetry and call BrowserSearchTelemetry direct. r=daleharvey
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: