Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "CrOS Settings: Clearing pref when UMA consent is revoked."
This reverts commit 72dd284. Reason for revert: Failed CHECK() for GAIA test accounts b/288018127 Original change's description: > CrOS Settings: Clearing pref when UMA consent is revoked. > > Clearing the kTotalUniqueOsSettingsChanged pref when the user has > revoked consent for UMA. We will not store the unique Settings, and we > will not record data to the histograms. > If the user grants consent for UMA, we will keep the state that the user > has revoked consent before and we will not record their data in the > histogram > ChromeOS.Settings.NumUniqueSettingsChanged.DeviceLifetime.{time}. > We will not record the data again once the user has granted consent > to increase the accuracy of the data that we are recording. > > dd: go/cros-settings-revamp-metrics-design-doc > > NOTE: This CL will have a follow-up that will convert the > unittests per_session_settings_user_action_tracker_unittest.cc and > settings_user_action_tracker_unittest.cc to browser tests. They need > to get converted as we are now using g_browser_process in > PerSessionSettingsUserActionTracker which can only be tested using > browser tests. > > Bug= b/285021579 > TEST= > Manual: > All tests must be taken with a user that has run OOBE. > > Histograms: > ChromeOS.Settings.NumUniqueSettingsChanged.DeviceLifetime.{time} > {time} = one of {FirstWeek, SubsequentWeeks, Total} > {time} is based on the time passed since the user has taken > OOBE, .FirstWeek and .SubsequentWeeks. The total of first and > subsequent weeks will be recorded in .Total histogram. > A) Open Settings, grant UMA consent. Histogram will record > the data if any. > B) Open Settings, revoke UMA consent. Histogram will no > longer record the data, until the user grants UMA consent again. > C) Open Settings, grant UMA consent again. Case B will repeat again > since we will not record data if the user has revoked their consent at > least once in the lifetime of the device. > > Automated: Unittest: DISPLAY=:20 out/Default/unit_tests > --gtest_filter="*SettingsUserActionTrackerTest*" > > Change-Id: Ie973044ab375082d2e5272da4ce26b6f858ae08d > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4574214 > Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org> > Reviewed-by: Xiyuan Xia <xiyuan@chromium.org> > Commit-Queue: Nikki Moteva <moteva@google.com> > Cr-Commit-Position: refs/heads/main@{#1159212} (cherry picked from commit 4cff84f) Bug: b:285021579, b:288201067 No-Try: true Change-Id: I187ed28fd47face86435aa7fe1ff1685e27a9fd7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4630790 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Owners-Override: Fergus Dall <sidereal@google.com> Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org> Auto-Submit: Wes Okuhara <wesokuhara@google.com> Commit-Queue: Fergus Dall <sidereal@google.com> Cr-Original-Commit-Position: refs/heads/main@{#1160502} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4643168 Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/5845@{#61} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information