Skip to content

Commit

Permalink
[iOS] Fix crash when invalid URL is checked for Brave Search P3A (upl…
Browse files Browse the repository at this point in the history
…ift to 1.73.x) (#26708)

Uplift of #26706 (squashed) to release
  • Loading branch information
brave-builds authored Nov 23, 2024
1 parent f69e18c commit 2c1465d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ extension BrowserViewController {
func maybeRecordBraveSearchDailyUsage(url: URL) {
let braveSearchHost = "search.brave.com"
let braveSearchPath = "/search"
if url.host() != braveSearchHost || url.path() != braveSearchPath {
if url.host != braveSearchHost || url.path != braveSearchPath {
return
}
UmaHistogramBoolean("Brave.Search.BraveDaily", true)
Expand Down

0 comments on commit 2c1465d

Please sign in to comment.