-
Notifications
You must be signed in to change notification settings - Fork 899
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
P3A: Record default search engine changes.
Add a P3A probe to record when the default search engine is changed, and whether it's a transition between Brave Search or one of the other major services. This helps understand what options are seem better to users. Keep track of the previous default search engine url. The event the tracker observes only indicates something has changed, and by then the previous state is no longer accessible; we need this to correctly mark the transition in our matrix, separate from whatever the original default was at startup. Move the actual record step into an object method so it can access the saved previous default. This simplifies calling it at startup to set the initial kNoSwitch answer. Note: this means we only report a change if the ping is sent from the same application instance. We don't reset to kNoSwitch at the end of the weekly sample cadence, and restarting the browser always resets. Closes brave/brave-browser#18224
- Loading branch information
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters