Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M110] Merge to release branch to run DIPS experiment in M110 (1/3)
This cherry pick combines 4 CLs that need to be merged into M110 in order to collect metrics and experimentially do DIPS deletion. Bug: 1404955 The combined CLs descriptions are listed below in descending chronological order. [DIPS] Reorder params in DIPSService::RecordBounce for consistency The method signature of the DIPSStorage equivalent is RecordBounce(const GURL& url, base::Time time, bool stateful), this CL reorders DIPSService::RecordBounce to have these params in the same order. Bug: 1375302 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4116614 Reviewed-by: Joshua Hood <jdh@chromium.org> Commit-Queue: Kirubel Aklilu <kaklilu@chromium.org> Cr-Commit-Position: refs/heads/main@{#1085563} (cherry picked from commit b386024) [DIPS] Migrate the DIPS db to version 2. Version 2 of the database will stop tracking `stateless` bounce times in favor of tracking the times of any bounce. This version also makes the DIPS db support NULL values for timestamps, instead of using `base::Time()` as the empty value. Bug: 1375302 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4111780 Reviewed-by: Ryan Tarpine <rtarpine@chromium.org> Commit-Queue: Kirubel Aklilu <kaklilu@chromium.org> Reviewed-by: Joshua Hood <jdh@chromium.org> Cr-Commit-Position: refs/heads/main@{#1085555} (cherry picked from commit 89fbba8) Improve DIPSService/DIPSWebContentsObserver creation. Only create DIPSService when dips::kFeature is enabled, and enable it by default. Rely on ProfileSelections to determine whether the service should be created for a Profile. Configure it to allow regular (including incognito) and OTR-only guest profiles. Only create DIPSWebContentsObserver when DIPSService::Get() returns non-null. Bug: 1400451 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4098585 Auto-Submit: Ryan Tarpine <rtarpine@chromium.org> Reviewed-by: Joshua Hood <jdh@chromium.org> Commit-Queue: Joshua Hood <jdh@chromium.org> Quick-Run: Ryan Tarpine <rtarpine@chromium.org> Cr-Commit-Position: refs/heads/main@{#1084439} (cherry picked from commit 3d8f79f) Add a scoped helper class to help test ProfileKeyedServiceFactorys. By design, ProfileKeyedServiceFactory doesn't allow overriding GetBrowserContextToUse(). So, to customize behavior based on a base::Feature, the only means is to set its ProfileSelections value based on the Feature. In production, this won't change during runtime, so setting it once in the constructor is sufficient. But tests may need to vary it, so this CL defines a scoped helper class that overrides the ProfileSelections and later reverts the change when the scope ends. (cherry picked from commit 7f9a229) Bug: 1400451 Change-Id: I949de545b25b1c3e730857cbc13940b229af410b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4098624 Reviewed-by: David Roger <droger@chromium.org> Reviewed-by: Ryan Sultanem <rsult@google.com> Commit-Queue: Ryan Tarpine <rtarpine@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1084360} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4133655 Auto-Submit: Kirubel Aklilu <kaklilu@chromium.org> Reviewed-by: Ryan Tarpine <rtarpine@chromium.org> Commit-Queue: Kirubel Aklilu <kaklilu@chromium.org> Cr-Commit-Position: refs/branch-heads/5481@{#154} Cr-Branched-From: 130f3e4-refs/heads/main@{#1084008}
- Loading branch information