Commit 56914cd4 authored by Ryan Kelly's avatar Ryan Kelly Committed by Arturo Mejia
Browse files

Reset experiment telemetry identifiers on data prefs change.

When the user opts out of telemetry, we need to reset the user identifiers
used by the experiment system, so that there's no risk of tracking the
user across the reset event if they later decide to re-enable telemetry.
parent b6fb9e4f
......@@ -31,6 +31,10 @@ class DataChoicesFragment : PreferenceFragmentCompat() {
} else {
// Reset experiment identifiers on both opt-in and opt-out; it's likely
// that in future we will need to pass in the new telemetry client_id
// to this method when the user opts back in.
} else if (key == getPreferenceKey(R.string.pref_key_marketing_telemetry)) {
if (context.settings().isMarketingTelemetryEnabled) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment