0

457 Commits

Author SHA1 Message Date
493c8a004b Exclude all hit NOTREACHED()s on iOS M124 stable
Bug: 40580068
Change-Id: Iefa277350f49d3b29c86fa51e5247b69922e408b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5519117
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Owners-Override: Lei Zhang <thestig@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Auto-Submit: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1297165}
2024-05-06 22:44:57 +00:00
3ae90009a0 Convert base::StringPiece to std::string_view in //components 3/5
The changes of this CL are made using the following script.
Script: https://issues.chromium.org/issues/40506050#comment343

Bug: 40506050
Change-Id: I7b21541a0723d312206c786d3af570f552ceef4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5498922
Auto-Submit: Helmut Januschka <helmut@januschka.com>
Commit-Queue: Helmut Januschka <helmut@januschka.com>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1295637}
2024-05-02 18:42:28 +00:00
ace31852d1 Remove unused notification service includes and references
Bug: 40327896
Change-Id: I5a652d7d86e037825d9b0e45aa3c85c6c14f8b40
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5506804
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Leonard Grey <lgrey@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1295517}
2024-05-02 16:22:08 +00:00
45c4058fd0 Migrate TODOs referencing old crbug IDs to the new issue tracker IDs
The canonical bug format is TODO(crbug.com/<id>). TODOs of the
following forms will all be migrated to the new format:

- TODO(crbug.com/<old id>)
- TODO(https://crbug.com/<old id>)
- TODO(crbug/<old id>)
- TODO(crbug/monorail/<old id>)
- TODO(<old id>)
- TODO(issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/u/1/issues/<old id>)
- TODO(bugs.chromium.org/<old id>)

Bug id mapping is sourced from go/chrome-on-buganizer-prod-issues.
See go/crbug-todo-migration for details.

#crbug-todo-migration

Bug: b/321899722
Change-Id: I8a9934c8837b7e99594af4d63d4343128b70f7fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5493246
Auto-Submit: Alison Gale <agale@chromium.org>
Owners-Override: Alison Gale <agale@chromium.org>
Commit-Queue: Alison Gale <agale@chromium.org>
Reviewed-by: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1293200}
2024-04-26 19:30:02 +00:00
6b10d86906 Log ImportantFileWriter metrics for the account preference file
This should help measure any regression caused by the account pref file
(currently only on mobile platforms).

Bug: 335405250
Change-Id: I8ab0ac5c46d1851b246857a761a5231cfa1d44e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5458993
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Commit-Queue: Ankush Singh <ankushkush@google.com>
Cr-Commit-Position: refs/heads/main@{#1289829}
2024-04-19 09:41:24 +00:00
da61bfd2ee JNI Zero: Use jobject rather than jstring in ToJniType/FromJniType
This will make it possible to do jobjectArray->vector<string>
conversions without having a separate API for strings vs objects.

Also:
 * Changes to allow "env", "jcaller", and "ret" as parameter names
 * Some changes in preparation for using "jobject" (rather than
   subclasses) in proxy types.
 * Fixes ConvertArray::ToJniType of plain jobject. (b/335353381)

Bug: 331819030, 330378731, 335353381
Change-Id: I5c891a678819814920d67a72d3bf5747eebd0045
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5457894
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1289536}
2024-04-18 20:13:23 +00:00
2a261db402 Add JniType support for PrefService
Bug: 40269452
Change-Id: I11d9bbab953d5bcfa52a1bfef968b9f96d71e9f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5446573
Auto-Submit: Victor Vianna <victorvianna@google.com>
Reviewed-by: Nohemi Fernandez <fernandex@chromium.org>
Reviewed-by: Theresa Sullivan <twellington@chromium.org>
Commit-Queue: Victor Vianna <victorvianna@google.com>
Cr-Commit-Position: refs/heads/main@{#1287862}
2024-04-16 08:41:24 +00:00
b8be952f6c Migrate TODOs referencing old crbug IDs to the new issue tracker IDs
The canonical bug format is TODO(crbug.com/<id>). TODOs of the
following forms will all be migrated to the new format:

- TODO(crbug.com/<old id>)
- TODO(https://crbug.com/<old id>)
- TODO(crbug/<old id>)
- TODO(crbug/monorail/<old id>)
- TODO(<old id>)
- TODO(issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/<old id>)
- TODO(https://issues.chromium.org/u/1/issues/<old id>)
- TODO(bugs.chromium.org/<old id>)

Bug id mapping is sourced from go/chrome-on-buganizer-prod-issues.
See go/crbug-todo-migration for details.

#crbug-todo-migration

Bug: b/321899722
Change-Id: I89f0a4d7ddeb7c9585f3a0e5421aef8ce5a6f0f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5455854
Reviewed-by: Taylor Bergquist <tbergquist@chromium.org>
Commit-Queue: Alison Gale <agale@chromium.org>
Owners-Override: Alison Gale <agale@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1287738}
2024-04-16 00:00:31 +00:00
8571e3eab2 [prefs] Remove PrefService::GetPreferenceValueChecked
since PrefService::GetPreferenceValue is now checked by default
as of https://crrev.com/c/5416453

This will add CHECK coverage to PrefService::IteratePreferenceValues
and PrefService::GetPreferenceValues.

Bug: 41497491
Change-Id: I3633a28829e13748b1cb8d3648885dd5f03c4ad1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5425696
Auto-Submit: Gabriel Charette <gab@chromium.org>
Reviewed-by: Dominic Battre <battre@chromium.org>
Commit-Queue: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1285584}
2024-04-11 02:45:05 +00:00
7fcc40074c [prefs] Increase hardening for prefs paths that shouldn't hit
PrefValueStore::GetValueFromStoreWithType and proper PrefService
registration should already make these paths impossible to hit but
absl hardening checks in crbug.com/41497491 hint otherwise...

R=battre@chromium.org

Bug: 41497491
Change-Id: I512465cd3d4a8322ef89a78053dcbf6e0cd21c71
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5416453
Commit-Queue: Gabriel Charette <gab@chromium.org>
Auto-Submit: Gabriel Charette <gab@chromium.org>
Reviewed-by: Dominic Battre <battre@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1282709}
2024-04-04 20:08:46 +00:00
5caaa6edbf Add a UMA metrics to track preference updates
Adding a metric to track which preference are updated.

An udpate to a preference is triggering an update of the file on disk.
The update is done though the ImportantFileWrite which is suspected to
be too heavy on disk flush and it is affecting Chrome performance.

Bug: 40667025
Change-Id: Ic8a1d58e2e781eb919980a1c4eba873acdce44e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5391881
Reviewed-by: Gabriel Charette <gab@chromium.org>
Commit-Queue: Etienne Bergeron <etienneb@chromium.org>
Reviewed-by: Luc Nguyen <lucnguyen@google.com>
Cr-Commit-Position: refs/heads/main@{#1282506}
2024-04-04 15:12:02 +00:00
2af5aee58a Don't assume STL iterators are pointers
This is batch 1 of a Chromium-wide cleanup preparing for a libc++ change that changes various iterators to not be raw pointers.

components/omnibox/browser/autocomplete_result_unittest.cc was refactored to use base::span in AssertResultMatches().

AX-Relnotes: n/a.
Bug: 328308661
Change-Id: I77e74d10ae0a616b9086d712476d712cd31ccb3e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5350511
Owners-Override: Nico Weber <thakis@chromium.org>
Commit-Queue: Arthur Eubanks <aeubanks@google.com>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1269423}
2024-03-07 06:51:45 +00:00
81e6ce990a [buganizer] Migrate DIR_METADATA components/
Migrate all remaining metadata files for components/
folders.

Verify components with http://b/components/{id} or at
go/chrome-on-buganizer-prod-components.

Bug: chromium:1518875
Change-Id: Ib2f98db0dc16f1df6c501b1d607ec586a05843dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5284041
Commit-Queue: Colin Blundell <blundell@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1259078}
2024-02-12 10:11:11 +00:00
372390cf3b [components] Documents flags in RemoveValue.
The meaning was explained in other method but not here.

Bug: 1524295
Change-Id: Ic8cf5292a678252e19f86167a44cbead84332d6a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5259645
Reviewed-by: Dominic Battre <battre@chromium.org>
Commit-Queue: Dominic Battre <battre@chromium.org>
Auto-Submit: Arthur Milchior <arthurmilchior@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1257273}
2024-02-07 10:57:26 +00:00
c571efbef3 Rename {absl => std}::optional in //components/
#cleanup

Automated patch. This is a no-op. Please avoid, to assign unrelated
bugs to this, as much as possible.

Context:
https://groups.google.com/a/chromium.org/g/cxx/c/nBD_1LaanTc/m/ghh-ZZhWAwAJ?utm_medium=email

As of https://crrev.com/1204351, absl::optional is now a type alias
for std::optional. We should migrate toward it.

Script:
```
function replace {
  echo "Replacing $1 by $2"
  git grep -l "$1" \
    | cut -f1 -d: \
    | grep \
      -e "^components/" \
    | grep \
      -e "\.h" \
      -e "\.cc" \
      -e "\.mm" \
    | grep -v \
      -e "components/cast_streaming/browser/public/receiver_config.*" \
      -e "components/power_metrics/*" \
      -e "components/zucchini/patch_reader.*" \
    | sort \
    | uniq \
    | xargs sed -i "s/$1/$2/g"
}
replace "absl::make_optional" "std::make_optional"
replace "absl::optional" "std::optional"
replace "absl::nullopt" "std::nullopt"
replace "absl::in_place" "std::in_place"
replace "absl::in_place_t" "std::in_place_t"
replace "\"third_party\/abseil-cpp\/absl\/types\/optional.h\"" "<optional>"

echo "Formatting:"

echo "IncludeBlocks: Regroup" >> ".clang-format"
echo "IncludeIsMainRegex: \"(_(android|apple|chromeos|freebsd|fuchsia|fuzzer|ios|linux|mac|nacl|openbsd|posix|stubs?|win))?(_(unit|browser|perf)?tests?)?$\"" >> ".clang-format"
git cl format
git restore ".clang-format"

git cl format
```

Bug: chromium:1500249
Change-Id: I34b45aba082a627d94fd9d3f9f994a60c64b40b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5200092
Auto-Submit: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Owners-Override: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1252820}
2024-01-26 20:26:18 +00:00
7fe12c1498 jni_zero: Preparing for jni_zero to no longer depend on base
Soon, jni_zero's generated files will no longer have a dep onto base's
jni_android.h, which will break a number of files which rely on that
include to provide the base:: aliases to jni_zero functions. For the
most part, I have just changed the base::android:: refs to jni_zero::,
and in a few files with different references I've just added a direct
include of jni_android.h (or whatever header file was needed).

Bug: 1377351
Change-Id: I1a635d950be3e60f2afa400e52fe33fa9e433002
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5240489
Auto-Submit: Sam Maier <smaier@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Sam Maier <smaier@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1252790}
2024-01-26 19:22:43 +00:00
e764fd96a7 Avoid heap-allocating the PrefChangeRegistrar
In https://crrev.com/c/5154759, some uses of PrefChangeRegister were
moved to unique_ptr to ensure they could be reset prior to the
PrefService they referenced being destroyed. This caused a performance
regression on some benchmarks.

This reverts the majority of that change and instead adds an explicit
Reset method to PrefChangeRegister that clears the reference to the
PrefService. Using this avoids the heap allocation while still
addressing the dangling reference.

Fixed: 1515042
Bug: 1512677
Change-Id: I22ed2fd8d66e013c07382ddfdee6f2ecc37e96d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5217796
Commit-Queue: Mark Rowe <markrowe@chromium.org>
Reviewed-by: Dominic Battre <battre@chromium.org>
Auto-Submit: Mark Rowe <markrowe@chromium.org>
Reviewed-by: Martin Šrámek <msramek@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1251498}
2024-01-24 17:45:38 +00:00
9ded8fae59 [Code Health] Remove a use of base::SupportsWeakPtr. (prefs)
Bug: 647430
Change-Id: I91c6661c171de0880559833e4c6638d2372d38fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5172923
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Auto-Submit: David Bertoni <dbertoni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1245487}
2024-01-10 20:39:27 +00:00
a154c5ff0d Improve TestingPrefServiceBase arguments ownership
Test-only change. Instead of having the constructor take ownership
of raw pointers, take scoped_refptr<> / unique_ptr<> as arguments
in the first place.

Bug: None
Change-Id: Id350c0b16b23d5228cd8d7d76a3c37cfc84bbfe5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5062858
Commit-Queue: Victor Vianna <victorvianna@google.com>
Reviewed-by: James Cook <jamescook@chromium.org>
Reviewed-by: Dominic Battre <battre@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: James Lee <ljjlee@google.com>
Cr-Commit-Position: refs/heads/main@{#1230522}
2023-11-29 09:40:50 +00:00
6921184104 LSC: Reformat //components/**/*.java with google-java-format
Excluding //components/cronet, and //components/browser_ui, which are in
separate changes.

See: https://docs.google.com/document/d/1XKHDXIlUP4p9tWQQnImCPhoKbXEgX-otdwEjX8G6SpQ/edit

Bug: 1491626
Change-Id: I2f71f805ac85d57f55e92e2050dc87b70dccfe96
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5053183
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1228532}
2023-11-23 18:48:09 +00:00
347cfcaaaf Downgrade NOTREACHED in GetUserPrefValue
This downgrades a NOTREACHED inside PrefService::GetUserPrefValue which
is one of the top report signatures on Windows M119.

Downgrading a NOTREACHED to DUMP_WILL_BE_NOTREACHED_NORETURN excludes it
from the kNotReachedIsFatal experiment and avoids stability risk during
experiment rollout.

Bug: 851128, 1501956
Change-Id: I737e71a3c1e24522286ab13327d4c62185ff1ee7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5025868
Auto-Submit: Peter Boström <pbos@chromium.org>
Commit-Queue: Dominic Battre <battre@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Peter Boström <pbos@chromium.org>
Reviewed-by: Dominic Battre <battre@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1223890}
2023-11-13 21:58:25 +00:00
91befdd75e Speed Options Menu
Implement speed options menu in expanded player.

b/300937112

Change-Id: If82da61949b180d3364f01176e11b8ef551fcee6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4968794
Commit-Queue: Andrea Gomez <andreaxg@google.com>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Ian Wells <iwells@chromium.org>
Reviewed-by: Theresa Sullivan <twellington@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1223006}
2023-11-10 17:56:53 +00:00
ec1be8442a Remove a use of bare new in pref_notifier_impl.cc
PrefNotifierImpl::AddPrefObserver() used new + base::WrapUnique. Use
std::make_unique instead. Also replace a use of
std::unordered_map::operator[] with emplace() for smaller code.

Change-Id: I00d5f8bebd29fedcc7e78524a3466695650d9723
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4954236
Auto-Submit: Adam Rice <ricea@chromium.org>
Commit-Queue: Dominic Battre <battre@chromium.org>
Reviewed-by: Dominic Battre <battre@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1212655}
2023-10-20 10:17:26 +00:00
c75b541508 Reland "Java bridge for prefs::kSupervisedUserId"
This is a reland of commit 7c6b29fae6

Original change's description:
> Java bridge for prefs::kSupervisedUserId
>
> Server-side AccountCapabilities changes is not immediately reflected
> client-side. We thus prefer checking supervised user status with prefs.
>
> Bug: b/304989593
>
> Change-Id: Iefb1648e590a96cbe6abf72c1209d836f60558b3
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4931499
> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
> Commit-Queue: Duong Dac <ddac@chromium.org>
> Reviewed-by: Nohemi Fernandez <fernandex@chromium.org>
> Reviewed-by: Dominic Battre <battre@chromium.org>
> Reviewed-by: Boris Sazonov <bsazonov@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1212104}

Bug: b/304989593
Change-Id: Ida1ce0d92d51679328fec8f4df57bfa7d1aa8028
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4952482
Reviewed-by: Colin Blundell <blundell@chromium.org>
Commit-Queue: Duong Dac <ddac@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1212197}
2023-10-19 16:21:30 +00:00
d764216257 Revert "Java bridge for prefs::kSupervisedUserId"
This reverts commit 7c6b29fae6.

Reason for revert: Causing build fails.

Original change's description:
> Java bridge for prefs::kSupervisedUserId
>
> Server-side AccountCapabilities changes is not immediately reflected
> client-side. We thus prefer checking supervised user status with prefs.
>
> Bug: b/304989593
>
> Change-Id: Iefb1648e590a96cbe6abf72c1209d836f60558b3
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4931499
> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
> Commit-Queue: Duong Dac <ddac@chromium.org>
> Reviewed-by: Nohemi Fernandez <fernandex@chromium.org>
> Reviewed-by: Dominic Battre <battre@chromium.org>
> Reviewed-by: Boris Sazonov <bsazonov@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1212104}

Bug: b/304989593
Change-Id: I7620032fc9360bc2c4c66ea161e2e79d458d1a8d
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4955075
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Colin Blundell <blundell@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Auto-Submit: Duong Dac <ddac@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1212121}
2023-10-19 13:39:44 +00:00
7c6b29fae6 Java bridge for prefs::kSupervisedUserId
Server-side AccountCapabilities changes is not immediately reflected
client-side. We thus prefer checking supervised user status with prefs.

Bug: b/304989593

Change-Id: Iefb1648e590a96cbe6abf72c1209d836f60558b3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4931499
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Duong Dac <ddac@chromium.org>
Reviewed-by: Nohemi Fernandez <fernandex@chromium.org>
Reviewed-by: Dominic Battre <battre@chromium.org>
Reviewed-by: Boris Sazonov <bsazonov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1212104}
2023-10-19 13:11:37 +00:00
e8efa91c01 Remove obsolete CHECKs in PrefService::GetPreferenceValue()
In PrefService, some CHECKs used for debugging are obsolete, as the bug
was fixed over 8 years ago. Remove them.

Bug: 435208
Change-Id: Ie5a7131616056312aa705b17a7e5123e4766c01a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4950175
Reviewed-by: Dominic Battre <battre@chromium.org>
Commit-Queue: Dominic Battre <battre@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1211334}
2023-10-18 06:49:17 +00:00
78c53dd0d3 Reland "jni_zero: Migrating all JNI annotations in /components to jni_zero copies #cleanup"
This reverts commit 87d9dc3a6e.

Reason for revert: Removed cronet from this CL

Original change's description:
> Revert "jni_zero: Migrating all JNI annotations in /components to jni_zero copies #cleanup"
>
> This reverts commit 7a64d84a5c.
>
> Reason for revert:
> LUCI Bisection identified this CL as the culprit of a build failure. See the analysis: https://luci-bisection.appspot.com/analysis/b/8766962067438004721
>
> Sample failed build: https://ci.chromium.org/b/8766962067438004721
>
> If this is a false positive, please report it at https://bugs.chromium.org/p/chromium/issues/entry?comment=Analysis%3A+https%3A%2F%2Fluci-bisection.appspot.com%2Fanalysis%2Fb%2F8766962067438004721&components=Tools%3ETest%3EFindit&labels=LUCI-Bisection-Wrong%2CPri-3%2CType-Bug&status=Available&summary=Wrongly+blamed+https%3A%2F%2Fchromium-review.googlesource.com%2Fc%2Fchromium%2Fsrc%2F%2B%2F4939139
>
> Original change's description:
> > jni_zero: Migrating all JNI annotations in /components to jni_zero copies #cleanup
> >
> > This CL is the result of a few simple sed commands, switching any import
> > statement using any of the 6 JNI annotations, and switching over the gn
> > targets from base:jni_java to jni_zero_java.
> >
> > This CL was uploaded by git cl split.
> >
> > R=agrieve@chromium.org, battre@chromium.org, clhager@google.com, finnur@chromium.org, mschillaci@google.com, mthiesse@chromium.org, nyquist@chromium.org, peter@chromium.org, tedchoc@chromium.org, wylieb@chromium.org
> >
> > Bug: 1456762
> > Change-Id: Ifcfb41f52f8154fa00da9bd7279173ba8407f3bd
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4939139
> > Auto-Submit: Sam Maier <smaier@chromium.org>
> > Reviewed-by: Charles Hager <clhager@google.com>
> > Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> > Owners-Override: Andrew Grieve <agrieve@chromium.org>
> > Commit-Queue: Sam Maier <smaier@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1211013}
> >
>
> Bug: 1456762
> Change-Id: I7e24956d5829c0784ebb2edd5ca664a63202a45e
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4949711
> Bot-Commit: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com>
> Owners-Override: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com>
> Commit-Queue: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com>
> Cr-Commit-Position: refs/heads/main@{#1211033}

Bug: 1456762
Change-Id: Icb36a5ff3f01513b23b3fa79aa04bbc0f4c9ad33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4949372
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Sam Maier <smaier@chromium.org>
Owners-Override: Sam Maier <smaier@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1211236}
2023-10-18 01:16:22 +00:00
87d9dc3a6e Revert "jni_zero: Migrating all JNI annotations in /components to jni_zero copies #cleanup"
This reverts commit 7a64d84a5c.

Reason for revert:
LUCI Bisection identified this CL as the culprit of a build failure. See the analysis: https://luci-bisection.appspot.com/analysis/b/8766962067438004721

Sample failed build: https://ci.chromium.org/b/8766962067438004721

If this is a false positive, please report it at https://bugs.chromium.org/p/chromium/issues/entry?comment=Analysis%3A+https%3A%2F%2Fluci-bisection.appspot.com%2Fanalysis%2Fb%2F8766962067438004721&components=Tools%3ETest%3EFindit&labels=LUCI-Bisection-Wrong%2CPri-3%2CType-Bug&status=Available&summary=Wrongly+blamed+https%3A%2F%2Fchromium-review.googlesource.com%2Fc%2Fchromium%2Fsrc%2F%2B%2F4939139

Original change's description:
> jni_zero: Migrating all JNI annotations in /components to jni_zero copies #cleanup
>
> This CL is the result of a few simple sed commands, switching any import
> statement using any of the 6 JNI annotations, and switching over the gn
> targets from base:jni_java to jni_zero_java.
>
> This CL was uploaded by git cl split.
>
> R=agrieve@chromium.org, battre@chromium.org, clhager@google.com, finnur@chromium.org, mschillaci@google.com, mthiesse@chromium.org, nyquist@chromium.org, peter@chromium.org, tedchoc@chromium.org, wylieb@chromium.org
>
> Bug: 1456762
> Change-Id: Ifcfb41f52f8154fa00da9bd7279173ba8407f3bd
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4939139
> Auto-Submit: Sam Maier <smaier@chromium.org>
> Reviewed-by: Charles Hager <clhager@google.com>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Owners-Override: Andrew Grieve <agrieve@chromium.org>
> Commit-Queue: Sam Maier <smaier@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1211013}
>

Bug: 1456762
Change-Id: I7e24956d5829c0784ebb2edd5ca664a63202a45e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4949711
Bot-Commit: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com>
Owners-Override: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com>
Commit-Queue: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1211033}
2023-10-17 19:55:12 +00:00
7a64d84a5c jni_zero: Migrating all JNI annotations in /components to jni_zero copies #cleanup
This CL is the result of a few simple sed commands, switching any import
statement using any of the 6 JNI annotations, and switching over the gn
targets from base:jni_java to jni_zero_java.

This CL was uploaded by git cl split.

R=agrieve@chromium.org, battre@chromium.org, clhager@google.com, finnur@chromium.org, mschillaci@google.com, mthiesse@chromium.org, nyquist@chromium.org, peter@chromium.org, tedchoc@chromium.org, wylieb@chromium.org

Bug: 1456762
Change-Id: Ifcfb41f52f8154fa00da9bd7279173ba8407f3bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4939139
Auto-Submit: Sam Maier <smaier@chromium.org>
Reviewed-by: Charles Hager <clhager@google.com>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1211013}
2023-10-17 19:12:14 +00:00
54e115d50c LSC: Reformat //components/**/*Test.java with google-java-format
See: https://docs.google.com/document/d/1XKHDXIlUP4p9tWQQnImCPhoKbXEgX-otdwEjX8G6SpQ/edit

Bug: 1491626
Change-Id: I4d9c56fc5aa548c72c4f95a3f0a96684e62e2643
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4947611
Owners-Override: Sam Maier <smaier@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1210930}
2023-10-17 17:13:22 +00:00
559526d3b0 Fix standalone browser settings leaking into Incognito
Standalone browser settings are associated with the Ash primary profile
and may contain extension-set preferences from the main Lacros profile.
These settings should not be synced with Incognito.

The CL also fixes two other issues:
- The PrefServiceSyncableChromeOsTest fixture switched the recommended
store with the standalone browser store;
- While the standalone browser settings were readable from Incognito,
attempting to set a value in the standalone browser store from Incognito
caused a memory access violation.

Bug: b/292239313
Change-Id: I5066be8f15ce83e7353a10eea85c7a8aa2c2e906
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4918977
Commit-Queue: Andreea Costinas <acostinas@google.com>
Reviewed-by: Stefan Kuhne <skuhne@chromium.org>
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1208847}
2023-10-12 15:01:03 +00:00
b3232b09bc Change CommandLinePrefStore to use spans
Pass a single parameter to CommandLinePrefStore::Apply*Switches()
instead of separate data and size params.

Change-Id: I656f39e92046b1cba9f3ff2226ac67da62f77483
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4913214
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1206664}
2023-10-06 22:03:10 +00:00
e8f4ac8fab Demo mode unit test for wizard controller
Add a unit test that goes through offline demo mode. This test adds
functionality for prefs and settings, e.g. checking if oobe is completed
in the correct steps.

Bug: b:280794386
Change-Id: I3b142ea2c739a945f34ca5755c1b33fce88637d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4853517
Reviewed-by: Maksim Ivanov <emaxx@chromium.org>
Reviewed-by: Dominic Battre <battre@chromium.org>
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Commit-Queue: Miriam Polzer <mpolzer@google.com>
Cr-Commit-Position: refs/heads/main@{#1198292}
2023-09-19 11:19:07 +00:00
2cb3f6d455 jni_zero: moving generate_jni gn template into third_party
Bug: 1456762
Change-Id: I5290699bc389291beeb2b2b8dd4f52ff8206f85b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4844132
Commit-Queue: Sam Maier <smaier@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1194104}
2023-09-08 14:50:20 +00:00
81551454d0 [CodeHealth][Prefs] Fix dangling pointers in pref_member
Release raw_ptr on Destroy.

Bug: 1462058
Change-Id: I8055af65d0b0ad7abf3824417c1d878050794d19
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4835638
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Auto-Submit: Christian Xu <christianxu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1193520}
2023-09-07 12:11:55 +00:00
a4800ad29f Remove ARC boilerplate in /components
ARC is now enabled by default, so there’s no need to enforce it
against files being put into non-ARC targets.

Bug: 1468376
Change-Id: I5f684e471053c8f3a9c963c4a14453da11460465
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4739038
Auto-Submit: Avi Drissman <avi@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1178413}
2023-08-02 15:39:20 +00:00
1b262d4ca0 Remove redundant ARC configuration in /components
ARC is now enabled by default, so enabling it at the target level is
redundant and can be removed.

Bug: 733237
Change-Id: I73b360e8311c194e5d9919816c50d994f0405624
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4721409
Auto-Submit: Avi Drissman <avi@chromium.org>
Reviewed-by: Cait Phillips <caitkp@chromium.org>
Commit-Queue: Cait Phillips <caitkp@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1176219}
2023-07-27 19:23:58 +00:00
c5c0210106 Android: Add missing direct deps
These direct deps were found via the new jdeps tool which will
eventually replace ClassPathValidator (the current way of detecting
missing direct deps).

Bug: 1099522
Change-Id: I4a537d97b59aac8574d2c011cd73b93fd8dc0290
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4712911
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Owners-Override: Peter Wen <wnwen@chromium.org>
Commit-Queue: Peter Wen <wnwen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1174933}
2023-07-25 17:59:29 +00:00
5ca0c971f4 pref_service: Fix "undregister" typo
Bug: None
Change-Id: I2fa4713c1c547ffabdbb30e5c5aae235ca62f3c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4700001
Commit-Queue: Dominic Battre <battre@chromium.org>
Auto-Submit: Michael Cui <mlcui@google.com>
Reviewed-by: Dominic Battre <battre@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1173371}
2023-07-21 08:21:56 +00:00
e6361d070b Rename DanglingAcrossTasks to AcrossTasksDanglingUntriaged
Following up on https://chromium-review.googlesource.com/c/chromium/src/+/4567353/comments/67bd2f0d_b10f9056
Add back DanglingUntriaged into the name of this trait.
Keep the name consistent with other traits.

Change-Id: I2702f843d9e81b87656ca31fd4c9ba19943d44d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4675808
Commit-Queue: Pâris Meuleman <pmeuleman@chromium.org>
Owners-Override: danakj <danakj@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1172247}
2023-07-19 09:00:43 +00:00
6811ccdda8 Add metadata in the internal pages to visualise prefs
Instead on simply seeing the value of the pref, we now see some
metadata related to the pref's status.

The value is now under the key "value" and the metadata is under the
key "metadata" and is an array of qualifiers for the pref such as
default, managed, user_controlled, user_modifiable, etc.

Visual: http://screen/6KFHbE42uHMAxgM

Bug: 1439614
Change-Id: I1f9e9bc048122d1aeae695b8b2d564f15bb61167
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4470027
Reviewed-by: Gabriel Charette <gab@chromium.org>
Commit-Queue: Yann Dago <ydago@chromium.org>
Reviewed-by: David Bertoni <dbertoni@chromium.org>
Auto-Submit: Yann Dago <ydago@chromium.org>
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1171971}
2023-07-18 21:01:28 +00:00
bb4ed18e64 Change PrefService::SetString() to take a base::StringPiece
Allow the StringPiece parameter to pass through to base::Value, instead
of forcing the SetString() caller to construct a std::string in some
cases.

Change-Id: I36b9d63d59a4bc2eecd4fff0580c6221e6079c20
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4679488
Reviewed-by: Dominic Battre <battre@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1169406}
2023-07-12 17:08:11 +00:00
4332a2f3be Annotate Cross task dangling pointers detected on Linux builds
This adds the DanglingAcrossTasks keyword and annotates raw_ptrs that
are "dangling cross task", i.e. that are freed and released in
different tasks.
These are more likely to allow UAFs and therefore are prioritized
over other dangling raw_ptr (Those remaining with DanglingUntriaged).

Protocol used:
1. Apply automatic dangling pointer annotation: crrev.com/c/4474553
2. Disable "DanglingUntriaged":
``` base/allocator/partition_allocator/pointers/raw_ptr.h:
constexpr auto DanglingUntriaged = base::RawPtrTraits::kEmpty ```
3. Configure Dangling pointer detection for cross tasks detection and logging only.
4. Run all tests using https://docs.google.com/document/d/1AMMERcqy0eafFWopUCHYsIKIKEp3J8DFxqW9UIbzIHo/edit?pli=1&resourcekey=0-e12-tlqsWfAOkle97uWw3w
5. Concatenate and filter output:
``` cat output_* | sort -nr | uniq | sed -e 's/\(.\)Found/\1\nFound/g' | grep -a -e "../../" | sed 's_^.*\.\./\.\./__' | sort | uniq > test_output_all
6. Apply the annotation using https://docs.google.com/document/d/1SGMZAaoEb6J0-NQO5V07TShxGAL5bxVN08TylBOrSCw/edit?usp=sharing

Change-Id: If176e8f7269ec4a95976e351e9b35a5cb8e4c699
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4567353
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Auto-Submit: Pâris Meuleman <pmeuleman@chromium.org>
Reviewed-by: Bartek Nowierski <bartekn@chromium.org>
Commit-Queue: Pâris Meuleman <pmeuleman@chromium.org>
Owners-Override: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1162824}
2023-06-27 08:12:51 +00:00
85b56d54c5 Clean up launched feature kPrefStoreBackgroundSerialization
Fixed: 1364606
Change-Id: Ie56cbbce8900351fd5181afaa8334a7c6e4df799
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4604320
Reviewed-by: Dominic Battre <battre@chromium.org>
Commit-Queue: Marc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1156119}
2023-06-12 10:15:49 +00:00
d40aad1899 DanglingPtr: mark leaked raw_ptr with LeakedDanglingUntriaged [1/N]
Those leaked raw_ptr were found in a previous CL (crrev.com/c/4501235/)
but the new tag was just introduced.

Bug: 1425095
Change-Id: Iac17934dca6714c202202794e3502f1b0d2aa79c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4580217
Owners-Override: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Paul Semel <paulsemel@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1153926}
2023-06-06 17:39:30 +00:00
c00050575b Android: Convert jni_generator annotation processor -> srcjar for many
GN edits made via script. It refactors all files where:
* There is a 1:1 mapping between android_library() and generate_jni()
* Variables were not used to store source files

@VisibleForTesting changes made manually

Validate-Test-Flakiness: skip
Bug: 1410871
Change-Id: I3a1c4262b020648d1eed8edc0c55fd98eab46e17
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4580907
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1153635}
2023-06-06 02:21:14 +00:00
6843b62ae6 Cover components_unittests on Rust bots.
Unit tests for the go/rusty-qr-code-generator project are in the
`components_unittests` and therefore this CL adds coverage of this test
suite to the Rust bots.

Because of the https://www.hyrumslaw.com the CL has to modify some unit
tests that depend on the following semi-private aspects of the JSON
parser (which subtly differ on Rust bots):

*   Exact shape of JSON error messages
*   Threading model (broken by Rust implementation's usage of
    `base::ThreadPool` in place of a mojo call):
    *    Tests no longer can use
         `base::test::SingleThreadTaskEnvironment`
    *    Usage of `base::RunLoop::RunIdle` needs to be refactored away
         (note that the comment for this method already says that it
         should *not* be used - that `QuitClosure` + `Run` should be
         preferred).

Bug: 1431991
Change-Id: I88da4f03b341a728b50ab209ed9eda8b4251ae31
Cq-Include-Trybots: chromium/try:android-rust-arm32-rel
Cq-Include-Trybots: chromium/try:android-rust-arm64-dbg
Cq-Include-Trybots: chromium/try:android-rust-arm64-rel
Cq-Include-Trybots: chromium/try:linux-rust-x64-dbg
Cq-Include-Trybots: chromium/try:linux-rust-x64-rel
Cq-Include-Trybots: chromium/try:win-rust-x64-dbg
Cq-Include-Trybots: chromium/try:win-rust-x64-rel
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4571966
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1151521}
2023-05-31 22:51:01 +00:00
7b5abf8ec2 [Code Health] Remove value based RegisterPref for Dict and List
Improve type safety by using Dict and List where possible.
Remove empty object construction in RegisterPref and
use a key-only method.

Bug: 1303949
Change-Id: Idf3333cf3106f0f0f5200eaf48ba264d5836dc6b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4533537
Commit-Queue: Sergii Bykov <sbykov@google.com>
Reviewed-by: Michael van Ouwerkerk <mvanouwerkerk@chromium.org>
Reviewed-by: Denis Kuznetsov <antrim@chromium.org>
Reviewed-by: Roland Bock <rbock@google.com>
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1145197}
2023-05-17 08:32:06 +00:00
8311c1a3c9 DanglingPtr: mark dangling ptrs triggered at exit [1/N]
We are currently merging a CL that checks for dangling ptrs at exit, and
those pointers were detected to be dangling at exit
(crrev.com/c/4345458).

This new dangling ptrs check will help diagnose PartitionAlloc
quarantine memory bloat.

Bug: 1291138
Change-Id: Ic2f4be013e1e944c8211effa9ee745755661948f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4501235
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Owners-Override: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Paul Semel <paulsemel@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1139622}
2023-05-04 17:12:46 +00:00