Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
No Bug: Don't initialize the P3A service in debug builds (#6498)
Browse files Browse the repository at this point in the history
Questions can still be reported and checked in the histograms viewer, but no API calls will happen
  • Loading branch information
kylehickinson authored Nov 28, 2022
1 parent f705bba commit 59f3e57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion App/iOS/Delegates/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

// DAU may not have pinged on the first launch so weekOfInstallation pref may not be set yet
if let weekOfInstall = Preferences.DAU.weekOfInstallation.value ??
Preferences.DAU.installationDate.value?.mondayOfCurrentWeekFormatted {
Preferences.DAU.installationDate.value?.mondayOfCurrentWeekFormatted,
AppConstants.buildChannel != .debug {
braveCore.initializeP3AService(
forChannel: AppConstants.buildChannel.serverChannelParam,
weekOfInstall: weekOfInstall
Expand Down

0 comments on commit 59f3e57

Please sign in to comment.