Skip to content

Commit

Permalink
VPN-6437: stop extra metric recordings (#10259)
Browse files Browse the repository at this point in the history
* VPN-6437 only send iOS metric when onboarding

* android work

* Revert "android work"

This reverts commit ff0c36e.
  • Loading branch information
mcleinman authored Feb 20, 2025
1 parent bb6f3b0 commit 68cb6cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/platforms/ios/ioscontroller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,11 @@
Controller* controller = MozillaVPN::instance()->controller();
controller->startHandshakeTimer();

granted ? mozilla::glean::outcome::onboarding_ntwrk_perm_granted.record()
: mozilla::glean::outcome::onboarding_ntwrk_perm_denied.record();
BOOL isOnboarding = MozillaVPN::instance()->state() == App::StateOnboarding;
if (isOnboarding) {
granted ? mozilla::glean::outcome::onboarding_ntwrk_perm_granted.record()
: mozilla::glean::outcome::onboarding_ntwrk_perm_denied.record();
}
}];
}

Expand Down

0 comments on commit 68cb6cb

Please sign in to comment.