0
Commit Graph

1695 Commits

Author SHA1 Message Date
Peter Kasting
a7f937543e Move span opt-ins for enable_view/enable_borrowed_range above def.
I don't believe this has a practical effect right now, but it is safer,
and it will have a practical effect in the future as I'm planning to
modify how the span range constructors work; this will ensure any
constraints that check whether base::span is a borrowed range will give
the correct answer.

This also fixes the oversight that we omitted these from the PRESUBMIT
allowlist; understandably, since they're not listed in any of the
categories on the various cppreference.com ranges pages. I had to do
this to allow this change to pass PRESUBMIT :)

Bug: 364987728
Change-Id: I8ff30b686350797a868bf15b250172aa0c24342f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5962876
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1373610}
2024-10-24 22:15:40 +00:00
Ho Cheung
42097f6604 [cleanup] Remove some std::to_string usages
Remove usages of `std::to_string` where
appropriate.

Bug: 335672557
Change-Id: I5015c7f7d7881a6c82db4219aefee0567413f826
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5937214
Reviewed-by: Siye Liu <siliu@microsoft.com>
Commit-Queue: Ho Cheung <hocheung@chromium.org>
Reviewed-by: Daniel Nicoara <dnicoara@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Nina Satragno <nsatragno@chromium.org>
Reviewed-by: Paul Semel <paulsemel@chromium.org>
Reviewed-by: Joe Downing <joedow@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1371996}
2024-10-22 13:34:22 +00:00
Georg Neis
94f87f04d2 ash: Adapt a presubmit check
The check prompted to add an assert(is_chromeos_ash) if not present.
Since we are going to remove is_chromeos_ash in favor of is_chromeos
(due to Lacros removal), change the check to allow both flags and
change the error message so that it mentions is_chromeos.

Also fix an issue in the tests. They were using mock files of the same
name, so only the first one was actually used.

Bug: 373971535
Change-Id: I0510a23df5fc61ac8d4327df1835f9c84bf64392
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5951185
Commit-Queue: Georg Neis <neis@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1371890}
2024-10-22 08:20:13 +00:00
Ho Cheung
184745a9d6 [chromecast] Remove std::to_string() from //chromecast
Removes std::to_string() and uses either base::NumberToString()
or base::FormatNumber().

Bug: 335672557
Change-Id: Icfcf598a2b63bba6dd99800a88860b0333a0a403
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5936992
Reviewed-by: Sean Topping <seantopping@chromium.org>
Commit-Queue: Ho Cheung <hocheung@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1369712}
2024-10-16 23:57:20 +00:00
Andrew Grieve
713b89b89f Reland : Improve mocking of os_path.exists() in PRESUBMIT_test.py
This reverts commit 58cf9bbd16.

Reason for reland: Fixed broken test

Original change's description:
> Revert "Reland "Improve mocking of os_path.exists() in PRESUBMIT_test.py""
>
> This reverts commit 3ba398ee58.
>
> Reason for revert: crbug.com/372313790
>
> Original change's description:
> > Reland "Improve mocking of os_path.exists() in PRESUBMIT_test.py"
> >
> > This reverts commit 74e5e087cb.
> >
> > Reason for reland: Fixed blink & webapk presubmit tests
> >
> > Original change's description:
> > > Revert "Improve mocking of os_path.exists() in PRESUBMIT_test.py"
> > >
> > > This reverts commit b35a9a9465.
> > >
> > > Reason for revert: Manual bisect shows that this is responsible for failures starting in https://ci.chromium.org/ui/p/chromium/builders/ci/linux-presubmit/19822/blamelist.  Local repro on Linux: `vpython3 chrome/android/webapk/PRESUBMIT_test.py --verbose`
> > >
> > > Original change's description:
> > > > Improve mocking of os_path.exists() in PRESUBMIT_test.py
> > > >
> > > > I need this for an upcoming change, but it turns out it found 2 real
> > > > bugs:
> > > >  * A .pydeps check that would never be hit due to test mocks returning
> > > >    that deleted files exist
> > > >  * A translations check that would never be hit due to test mocks using
> > > >    local paths when absolute paths were requested.
> > > >
> > > > Bug: None
> > > > Change-Id: I920e4f67b2ff1193b89c7abfd9664d14a94c44bf
> > > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5910106
> > > > Reviewed-by: Ted Choc <tedchoc@chromium.org>
> > > > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > > > Cr-Commit-Position: refs/heads/main@{#1364918}
> > >
> > > Bug: None
> > > Change-Id: Ibcc1931e5709d1a4209e56211595df8b94a35c9a
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5913697
> > > Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> > > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> > > Auto-Submit: Łukasz Anforowicz <lukasza@chromium.org>
> > > Owners-Override: Łukasz Anforowicz <lukasza@chromium.org>
> > > Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
> > > Cr-Commit-Position: refs/heads/main@{#1364999}
> >
> > Bug: None
> > Change-Id: I303d4d1abc685e3bad854e9a5ebe8ae2efe48869
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5912982
> > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > Auto-Submit: Andrew Grieve <agrieve@chromium.org>
> > Reviewed-by: Ted Choc <tedchoc@chromium.org>
> > Owners-Override: Andrew Grieve <agrieve@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1365664}
>
> Bug: None
> Change-Id: Iaebc98243a14fff08442948fea4d69531f6103ee
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5918609
> Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Owners-Override: Sophey Dong <sophey@chromium.org>
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Auto-Submit: Sophey Dong <sophey@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1365901}

Bug: None
Change-Id: I998b8bea9e513d24652ce3d92bf88f677c987538
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5921545
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1368995}
2024-10-15 20:20:08 +00:00
dpapad
e9f53c87ee Fix CheckEsLintConfigChanges PRESUBMIT check after ESLint v9 migration.
This presubmit check was informing developers when an ESLint config file
changed about manually running a command to ensure no ESLint violations
were introduced, and it was broken after the replacement of per-folder
.eslintrc.js files with a global tools/web_dev_style/eslint.config.mjs
file during the update to ESLint v9.

Porting the check to the new single config world, to print the following
when needed:

tools/web_dev_style/eslint.config.mjs modified. Consider running 'git cl presubmit --files "*.js;*.ts"' in order to check and fix the affected files before landing this change.

Bug: 365027672
Change-Id: I5377140b82973b709854676031d7b58565596a07
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5922516
Reviewed-by: Dirk Pranke <dpranke@google.com>
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1366526}
2024-10-09 23:41:13 +00:00
Peter Wen
ce103e1d3b android: Use vpython3 for generate_profile.py
This should resolve the module error on the bot:

```
ModuleNotFoundError: No module named 'six'
```

Also turn off logcat streaming in case that was causing the module
error.

Add .pydeps to ensure deps are included (they should already be
transitive deps of the existing data_deps but it's better to be explicit
and know when generate_profile.py's deps are changed).

Bug: 40272686
Change-Id: If35965e2b2657ab9bfbcfa2513eaefe2d033d9b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5917969
Auto-Submit: Peter Wen <wnwen@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1366368}
2024-10-09 19:23:51 +00:00
Sophey Dong
58cf9bbd16 Revert "Reland "Improve mocking of os_path.exists() in PRESUBMIT_test.py""
This reverts commit 3ba398ee58.

Reason for revert: crbug.com/372313790

Original change's description:
> Reland "Improve mocking of os_path.exists() in PRESUBMIT_test.py"
>
> This reverts commit 74e5e087cb.
>
> Reason for reland: Fixed blink & webapk presubmit tests
>
> Original change's description:
> > Revert "Improve mocking of os_path.exists() in PRESUBMIT_test.py"
> >
> > This reverts commit b35a9a9465.
> >
> > Reason for revert: Manual bisect shows that this is responsible for failures starting in https://ci.chromium.org/ui/p/chromium/builders/ci/linux-presubmit/19822/blamelist.  Local repro on Linux: `vpython3 chrome/android/webapk/PRESUBMIT_test.py --verbose`
> >
> > Original change's description:
> > > Improve mocking of os_path.exists() in PRESUBMIT_test.py
> > >
> > > I need this for an upcoming change, but it turns out it found 2 real
> > > bugs:
> > >  * A .pydeps check that would never be hit due to test mocks returning
> > >    that deleted files exist
> > >  * A translations check that would never be hit due to test mocks using
> > >    local paths when absolute paths were requested.
> > >
> > > Bug: None
> > > Change-Id: I920e4f67b2ff1193b89c7abfd9664d14a94c44bf
> > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5910106
> > > Reviewed-by: Ted Choc <tedchoc@chromium.org>
> > > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > > Cr-Commit-Position: refs/heads/main@{#1364918}
> >
> > Bug: None
> > Change-Id: Ibcc1931e5709d1a4209e56211595df8b94a35c9a
> > No-Presubmit: true
> > No-Tree-Checks: true
> > No-Try: true
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5913697
> > Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> > Auto-Submit: Łukasz Anforowicz <lukasza@chromium.org>
> > Owners-Override: Łukasz Anforowicz <lukasza@chromium.org>
> > Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1364999}
>
> Bug: None
> Change-Id: I303d4d1abc685e3bad854e9a5ebe8ae2efe48869
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5912982
> Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> Auto-Submit: Andrew Grieve <agrieve@chromium.org>
> Reviewed-by: Ted Choc <tedchoc@chromium.org>
> Owners-Override: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1365664}

Bug: None
Change-Id: Iaebc98243a14fff08442948fea4d69531f6103ee
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5918609
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Owners-Override: Sophey Dong <sophey@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Auto-Submit: Sophey Dong <sophey@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1365901}
2024-10-09 00:08:10 +00:00
Andrew Grieve
3ba398ee58 Reland "Improve mocking of os_path.exists() in PRESUBMIT_test.py"
This reverts commit 74e5e087cb.

Reason for reland: Fixed blink & webapk presubmit tests

Original change's description:
> Revert "Improve mocking of os_path.exists() in PRESUBMIT_test.py"
>
> This reverts commit b35a9a9465.
>
> Reason for revert: Manual bisect shows that this is responsible for failures starting in https://ci.chromium.org/ui/p/chromium/builders/ci/linux-presubmit/19822/blamelist.  Local repro on Linux: `vpython3 chrome/android/webapk/PRESUBMIT_test.py --verbose`
>
> Original change's description:
> > Improve mocking of os_path.exists() in PRESUBMIT_test.py
> >
> > I need this for an upcoming change, but it turns out it found 2 real
> > bugs:
> >  * A .pydeps check that would never be hit due to test mocks returning
> >    that deleted files exist
> >  * A translations check that would never be hit due to test mocks using
> >    local paths when absolute paths were requested.
> >
> > Bug: None
> > Change-Id: I920e4f67b2ff1193b89c7abfd9664d14a94c44bf
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5910106
> > Reviewed-by: Ted Choc <tedchoc@chromium.org>
> > Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1364918}
>
> Bug: None
> Change-Id: Ibcc1931e5709d1a4209e56211595df8b94a35c9a
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5913697
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Auto-Submit: Łukasz Anforowicz <lukasza@chromium.org>
> Owners-Override: Łukasz Anforowicz <lukasza@chromium.org>
> Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1364999}

Bug: None
Change-Id: I303d4d1abc685e3bad854e9a5ebe8ae2efe48869
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5912982
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1365664}
2024-10-08 17:34:50 +00:00
Peter Kasting
31879d86e0 Add PRESUBMIT check against <regex>, and remove existing inclusions.
This is banned, and not actually currently used, but some pointless
inclusions snuck in.

Bug: 364987728
Change-Id: I67f78892e77b9b0c199b0803fe661ce032a09f5f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5913958
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1365118}
2024-10-07 20:18:39 +00:00
Łukasz Anforowicz
74e5e087cb Revert "Improve mocking of os_path.exists() in PRESUBMIT_test.py"
This reverts commit b35a9a9465.

Reason for revert: Manual bisect shows that this is responsible for failures starting in https://ci.chromium.org/ui/p/chromium/builders/ci/linux-presubmit/19822/blamelist.  Local repro on Linux: `vpython3 chrome/android/webapk/PRESUBMIT_test.py --verbose`

Original change's description:
> Improve mocking of os_path.exists() in PRESUBMIT_test.py
>
> I need this for an upcomping change, but it turns out it found 2 real
> bugs:
>  * A .pydeps check that would never be hit due to test mocks returning
>    that deleted files exist
>  * A translations check that would never be hit due to test mocks using
>    local paths when absolute paths were requested.
>
> Bug: None
> Change-Id: I920e4f67b2ff1193b89c7abfd9664d14a94c44bf
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5910106
> Reviewed-by: Ted Choc <tedchoc@chromium.org>
> Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1364918}

Bug: None
Change-Id: Ibcc1931e5709d1a4209e56211595df8b94a35c9a
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5913697
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Auto-Submit: Łukasz Anforowicz <lukasza@chromium.org>
Owners-Override: Łukasz Anforowicz <lukasza@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1364999}
2024-10-07 16:56:18 +00:00
Andrew Grieve
b35a9a9465 Improve mocking of os_path.exists() in PRESUBMIT_test.py
I need this for an upcomping change, but it turns out it found 2 real
bugs:
 * A .pydeps check that would never be hit due to test mocks returning
   that deleted files exist
 * A translations check that would never be hit due to test mocks using
   local paths when absolute paths were requested.

Bug: None
Change-Id: I920e4f67b2ff1193b89c7abfd9664d14a94c44bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5910106
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1364918}
2024-10-07 14:34:19 +00:00
Erik Chen
ba8b0cd341 Add presubmit warnings for OFFICIAL_BUILD and GOOGLE_CHROME_BRANDING.
These are discouraged as they effectively untested, and are typically
used incorrectly. Valid examples are given.

Change-Id: I0d4ca0730581839fdbed01a5808f7d9790edf5bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5898210
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1362242}
2024-10-01 08:36:36 +00:00
Erik Chen
dba23695ba fix presubmit missing comma
Change-Id: Ieade9cbbe15b11d04c627ca887901625241e3519
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5892580
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1360387}
2024-09-26 06:43:36 +00:00
Peter Kasting
0efc9048de Replace StringPrintf() and StringAppendF() with forwards to absl.
On Fuchsia and ARM32, this regresses binary size by a small amount
(~30k), while on ARM64 it's a large win (~175k). Per agrieve@, this
is a win overall and this is OK to land.

That said, I did try to both investigate and reduce binary size
impact. On earlier patchsets, I tried changing inlining, especially
for callsites with more than a few arguments. This made things worse
rather than better. In examining a few assembly differences via
SuperSize, I believe the cause of the regression is the switch from
varargs to pack-of-const-refs causing variables to be forced to the
stack at a few callsites. This might be ameliorated with perfect
forwarding absl::StrFormat() and friends, but such a change is
invasive and nontrivial, and I'm not certain it will turn out to
help, so it doesn't seem worth pursuing for now.

Bug: 1371963
Binary-Size: See commit description.
Fuchsia-Binary-Size: See commit description.
Change-Id: I7d543b716387afc4461d2c2fa07ff3670a2ffa58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4907781
Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
Owners-Override: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Danil Chapovalov <danilchap@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1356497}
2024-09-17 15:48:43 +00:00
Andrew Grieve
21849f23dd Use ServiceLoaderUtil with AppHooks
Bug: 40901855
Change-Id: I346dd09c39182abc39bb696c938d03b5b0b4a769
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5866990
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1356084}
2024-09-16 20:11:27 +00:00
Mohamed Heikal
dd52b4531f Rename org.jni_zero classes when building standalone cronet
Bug: 353534209
Change-Id: I04c972cfa3f6958ef7729339384861b10ffaa68f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5735476
Reviewed-by: Mohannad Farrag <aymanm@google.com>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Stefano Duo <stefanoduo@google.com>
Commit-Queue: Mohamed Heikal <mheikal@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1353429}
2024-09-10 17:10:50 +00:00
Daniel Cheng
ddde13afff Add PRESUBMIT ban for user-defined literals from the standard library
Though provide an escape hatch for code that wants to define string
or string_view literals with embedded NULs, since the alternatives are
generally worse.

Bug: 364348894
Change-Id: Id94373d671dd85b467aef1de3a76a923e1419355
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5839557
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1351687}
2024-09-05 21:39:28 +00:00
Adam Walls
d4faac09e4 [WebView] Removing CRX Smoke tests for Client-Side Package Name Allowlist Deprecation
Bug: b:301314784
Change-Id: I5d83b2e434e41d085c340d803d619273782737f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5597926
Commit-Queue: Mateusz Zbikowski <zbikowski@google.com>
Reviewed-by: Trung Nguyen <tne@google.com>
Cr-Commit-Position: refs/heads/main@{#1349805}
2024-09-02 11:26:39 +00:00
Erik Chen
959cdd7ff2 Warning for TestWithBrowserView
TestWithBrowserView is functionally equivalent to browser_tests. It
should not be used.

Bug: 360163254
Change-Id: Ibdb6b2ee982142b6fe669c0de617f6a3cab32891
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5821457
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1348403}
2024-08-29 02:11:21 +00:00
mikt
19226ff2a6 [PRESUBMIT] Fix some one-line one-char messages
`BanRule.explanation` should be a tuple of `str`s, but some `BanRule`s
passes `str` itself as an explanation. It leads to super long warning
message of one-line one-char.

This CL fixes these errors by adding one extra comma comma inside
parentheses.

Fixed: 362216911
Change-Id: I3f480fe72e7617a939911c81fefc2aba44730ca6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5812005
Commit-Queue: Mikihito Matsuura <mikt@google.com>
Reviewed-by: Peter Wen <wnwen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1347168}
2024-08-27 05:28:21 +00:00
Erik Chen
8cf3a654c3 Warning for RunUntilIdle.
This method should not be used, and base::test::RunUntil should be used
instead.

Change-Id: I3bada62ea3c316eedc2b3c968bb89ad90eb2a724
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5807390
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1346045}
2024-08-23 17:13:30 +00:00
Erik Chen
5f02eb4c02 Update presubmit to disallow FindLastActive.
Change-Id: If419f7c830144a11c47aa9832794c0c16388dd19
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5807467
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1345827}
2024-08-23 06:30:44 +00:00
Peter Kasting
3b77a0cc23 Formally ban absl::optional.
It has been superseded by std::optional.

(Also removes some PRESUBMITs against StringPiece while I'm touching
that block, since that's gone too.)

Bug: 40288126
Change-Id: I8941f1bb75652a4bbb50e95026ea9b6d0ea5ecda
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5805666
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Owners-Override: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1345168}
2024-08-22 00:22:26 +00:00
Ciara McMullin
c029c8eda7 Move ip_protection related files to subdirectory and add OWNERS file
Bug: 360401811
Change-Id: Icc2143600773bbe875ad9008f68b2d529c6f355c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5797503
Reviewed-by: Richard (Torne) Coles <torne@chromium.org>
Reviewed-by: Andrew Williams <awillia@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Ciara McMullin <ciaramcmullin@google.com>
Cr-Commit-Position: refs/heads/main@{#1344780}
2024-08-21 14:22:32 +00:00
Erik Chen
d086ae0e92 Add details to design principles about test-only conditionals.
Change-Id: Icad59e29947120b75bdd514139bccba3a63515d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5794142
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Greg Thompson <grt@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1344456}
2024-08-20 22:53:33 +00:00
Tom Sepez
a90f92b23a Soften UNSAFE_BUFFER() warnings during presubmit checks.
The current ones have been deemed too difficult for teams to meet.

Change-Id: If7a69132570709fe75b811e6123419279e089dea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5789648
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1342289}
2024-08-15 16:01:35 +00:00
Tom Sepez
10d264de99 Update email contact for UNSAFE_BUFFERS presubmit check.
Change-Id: I497845ee02110e9a28aff6abc3486ad0b8565639
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5771868
Auto-Submit: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1339280}
2024-08-08 20:47:05 +00:00
Tom Sepez
ea67b6e1bf Introduce UNSAFE_TODO() macro.
Create a finer-grained method for exempting code from unsafe buffer
warnings that the per-file pragma. Its use will enable more files
to be opted in to these checks, and prevent re-exempting entire files
as more UNSAFE_BUFFER_USAGE functions are tagged.

-- Insist that UNSAFE_BUFFERS() requires security review.
-- Add a presubmit check to block usage.

Change-Id: Icb599340c38fd5fae5f739d7c25c6e025dbf5707
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5767792
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1339193}
2024-08-08 18:17:27 +00:00
dpapad
a45be36ce7 CrOS: Check-in Chai V4 for the purposes of CrOS js2gtest tests.
The obsolete js2gtest testing framework heavily depends on the v4
version of Chai, since it is incompatible with the latest v5 version,
which only exposes chai as an ES module. Several CrOS tets still use
js2gtest (for example c/b/r/chromeos/accessibility/ among others).

Checking in the Chai v4 version at [1], so that the rest of the
non-js2gtest WebUI tests can be updated to the latest v5 version, in
a follow-up CL.

[1] chrome/test/data/webui/chromeos/chai_v4.js

Bug: 347991521
Change-Id: I7717fa95327191d75c24efb100d697ea5b08e5aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5759162
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/main@{#1338629}
2024-08-07 20:19:35 +00:00
Steinar H. Gunderson
e5689e49be Include a utility for estimating confidence intervals of ratios.
A Perl+R variant of this has long been used out-of-tree; implement
it all in C++ and in the tree, so that it is more generally useful.

A future tool using the same class will interpret output logs from
blink_perf_tests, which has been using a similar tool.

Change-Id: I849869028f8d55a921cada3cf31bdd6fd7ee0688
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5688930
Reviewed-by: Rick Byers <rbyers@chromium.org>
Commit-Queue: Steinar H Gunderson <sesse@chromium.org>
Reviewed-by: John Chen <johnchen@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1338603}
2024-08-07 18:17:19 +00:00
Mike Dougherty
ab1bdece19 Exclude iOS from BrowserUserData PRESUMBIT check
iOS has a separate implementation of browser_user_data with the same
name `BrowserUserData`. On iOS, this is still used as the sole means of
storing state associated with the iOS implementation of Browser.

Change-Id: I5d3dfeacc3fe263b4354878dd19286b5b095f400
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5762690
Reviewed-by: Dominic Battré <battre@chromium.org>
Commit-Queue: Mike Dougherty <michaeldo@chromium.org>
Reviewed-by: Erik Chen <erikchen@chromium.org>
Auto-Submit: Mike Dougherty <michaeldo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1337927}
2024-08-06 16:39:01 +00:00
elabadysayed
cbbaea73a7 Add android_webview/support_library to exclueded paths for ValueCallback
presubmit check

We are already using ValueCallback in
support_library(StaticsBoundaryInterface.java)

Change-Id: I4541de144b16df8e7909ac2e7f5ffd1c5603a079
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5756700
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Richard (Torne) Coles <torne@chromium.org>
Commit-Queue: Sayed Elabady <elabadysayed@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1336072}
2024-08-01 16:10:42 +00:00
Daniel Rubery
ad36eeaad4 Allow printf in crdmg.cc
This is meant to run as a standalone binary and intentionally has
minimal dependencies on the rest of Chromium, so we'd prefer not to
pull in all the logging infrastructure. Since it doesn't impact end
users, just disable the presubmit.

Change-Id: Ie17eafe34225a0f1d8774469393afe6833dc2ef2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5751022
Commit-Queue: Daniel Rubery <drubery@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1335794}
2024-08-01 01:38:32 +00:00
Gavin Mak
23884403b9 Don't fail on cog when gclient_args.gni is not found
This can happen when presubmits are run before gclient sync in a cog workspace. We should warn the user instead of failing and blocking the change.

Bug: b/355285071
Change-Id: I201e89cec2494bd343d6371e4f0ea8b0704d9870
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5740154
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Gavin Mak <gavinmak@google.com>
Reviewed-by: Peter Wen <wnwen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1333186}
2024-07-25 20:39:26 +00:00
Hzj_jie
77bdb80794 [Fuchsia] Create an av_sync_tests for a/v perf tests
Currently the tests are running inside of media lab rather
than chrome lab. An ongoing effort is to migrate away from
media lab,
so the plan is to re-implement the tests in regular luci
swarming.

The detailed implementation is still ongoing, indeed the
hardware setup is also ongoing. But I need to have the
builder up and running for further hardware setup.

The test case itself will be used in a chrome internal
builder [1].

[1]: https://crrev.com/i/7508414

Bug: 40935291
Change-Id: I6da72d25655c08cc4a246e5c573720631a433688
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5727141
Commit-Queue: Zijie He <zijiehe@google.com>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1331198}
2024-07-22 18:14:51 +00:00
Slobodan Pejic
8ef56c7056 Exclude ios/chrome/common from systemImageNamed presubmit.
* Add ios/chrome/common where code is prevented from including the
  symbol_helper.h since ios/chrome/common/DEPS does not allow depending
  on ios/chrome/browser/... where symbol_helpers.h is located.
* Update the path to symbol_helpers.h in the presubmit message.

Bug: 339887700, b/338625793
Change-Id: I84a79bd830944ae07a6c22ad406b7e5571292656
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5683109
Reviewed-by: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Slobodan Pejic <slobodan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1326902}
2024-07-12 18:21:26 +00:00
mikt
6e9560c265 [PA/*Scan] Remove StarScan
No-Try because the timeout failure from linux-chromeos-rel is
caused by regression from `use_clang_coverage=true`.
Confirmed no failure in ash_unittests locally.
As it is not actionable from us, landing this change by skipping CQ.

Bug: 351126352
No-Try: true
Change-Id: I0b79a41a2ce68beb58ebc83c6e8b9a89ceb85891
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5678260
Reviewed-by: Kouhei Ueno <kouhei@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Keishi Hattori <keishi@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Mikihito Matsuura <mikt@google.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Junji Watanabe <jwata@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Roger McFarlane <rogerm@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1326599}
2024-07-12 07:33:52 +00:00
danakj
91c715bb44 Spanify and bounds-check base::circular_deque
Add a range-based constructor, tagged with `base::from_range_t` as a
backport of the C++23 `std::from_range_t`.

Add a range-based assign, named assign_range(), matching std vector and
string in C++23.

Then mark the iterator-pair-based constructor and assign() as
UNSAFE_BUFFER_USAGE.

Change VectorBuffer (the internal class) to stop allowing dereference of
the pointer one past the allocation as this is UB, and CHECK for this
instead. Then stop using derefences in circular_deque that are used to
construct pointers (as we were doing this with the end pointer too and
thus CHECKing). Use pointer arithmetic instead which is valid to
construct the end pointer without invoking UB.

Write SAFETY comments and UNSAFE_BUFFERS() on the pointer arithmetic
inside circular_deque. Move to using spans of the VectorBuffer instead
in most cases.

Make the iterators check for moving out of bounds and dereferencing
end(). Stop going through a pointer to the deque to do iterator
operations to make things easier on the optimizer. However this means
we must reconstruct iterators internally when we change the begin_ or
end_ of the circular_deque, so some minor reordering was needed
internally. This doesn't affect external users as their iterators
would be considered invalidated when begin_ or end_ move anyways.

The binary size regressions are entirely due to the PGO profile being
incorrect after this change: https://crbug.com/344608183#comment7

Bug: 40284755
Fuchsia-Binary-Size: Regression is a temporary PGO artifact
Binary-Size: Regression is a temporary PGO artifact
Change-Id: I20e74d02901387d75aa611ea1e7e98a699a6265a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5655271
Commit-Queue: danakj <danakj@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1325442}
2024-07-10 13:24:26 +00:00
Daniel Cheng
8971922e9c Allow most of <ranges> but explicitly ban views
Change-Id: I67befc6d5cc18ab3ce43e6e3a1ad68f8dba878fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5668999
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1323174}
2024-07-04 04:59:29 +00:00
Mohannad Farrag
ed2a5b4134 Remove generate_javadoc
Cronet generates its own javadoc internally in google3 through a
different set of scripts, generating through google3 provides two better
functionality over doing it in Chromium:

1. APIs in google3 are ensured to have been well-tested after a series
of rollouts.
2. The current setup in Chromium is brittle as it requires to have
source files for all of the API, if some auto-generated file is
introduced through srcjar, it blows up.

Change-Id: I54e317e9f0672b88d22ad29526634ee17be9f7e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5667544
Reviewed-by: Chidera Olibie <colibie@google.com>
Commit-Queue: Chidera Olibie <colibie@google.com>
Auto-Submit: Mohannad Farrag <aymanm@google.com>
Reviewed-by: Peter Wen <wnwen@chromium.org>
Reviewed-by: Etienne Dechamps <edechamps@google.com>
Reviewed-by: Stefano Duo <stefanoduo@google.com>
Cr-Commit-Position: refs/heads/main@{#1322664}
2024-07-03 09:21:08 +00:00
Daniel Cheng
566634ff1d git cl format --python PRESUBMIT.py and PRESUBMIT_test.py
Skipping the presubmit, because ironically enough, PRESUBMIT.py and
PRESUBMIT_test.py trigger a number of pre-existing presubmit violations.

No-Presubmit: true
Change-Id: I9aabeb8496a0582d6cb92af90db4ef3b32f70b04
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5668998
Reviewed-by: Steinar H Gunderson <sesse@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1321358}
2024-06-29 14:56:53 +00:00
Andrey Kosyakov
fea0ef943e Do not crash while wrapping DOMArrayBuffer with no backing store
Bug: 345684057, 349015781
Change-Id: I9dfa4bcfc517eadaac6bdc357ed7936822954f3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5662176
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1320419}
2024-06-27 16:10:41 +00:00
Scott Lee
bf6a094494 Disable DEPS review enforcement for cross-repo DEPS
When a new DEP is added, the presubmit check enforces reviews from
the owner of the additional DEP. However, when the DEP is from another
repo, the enforcement becomes trickier especially it is from a different
host.

This patch disables the check if a newly added DEP is from a submodule.

Change-Id: Id7c2feac005c1c769313dedb254d5a0b641ff68b
Bug: 324496840
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5656359
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Scott Lee <ddoman@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1320079}
2024-06-26 22:59:39 +00:00
Weizhong Xia
8b461f13b5 Do not check path length for baselines not used on Windows
This is one of the common reason that Wpt Importer will fail. Do not
check the length in this case so that a human intervention is less
likely needed.

Bug: None
Change-Id: Ida4e49f9892a8852e926b76bdda4755ab1865f98
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5648314
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Weizhong Xia <weizhong@google.com>
Cr-Commit-Position: refs/heads/main@{#1318176}
2024-06-21 21:46:33 +00:00
Lei Zhang
1f9d9ec46b Tidy some rules in PRESUBMIT.py
- Add some separators to a few lists to improve readability.
- Do more sorting.

Change-Id: I40716aa6d42db12ab2fd8981b5b44104720183af
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5644761
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1317524}
2024-06-20 18:42:27 +00:00
Ciara McMullin
28bce1a8a0 Implement config provider for android webview browser
The config provider is responsible for fetching tokens and proxy list on
demand for the network service. An instance will be initialized in AwBrowserContext::ConfigureNetworkParams and bound to the network service using Mojo interfaces. Majority of the logic and unittests come from the preexisting chrome/browser/ip_protection_config_provider*

Bug: b:335420700
Change-Id: Ic704fcdc1d966a1006a8787f1e117353e447fdff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5549298
Reviewed-by: Calder Kitagawa <ckitagawa@chromium.org>
Reviewed-by: Alex Ilin <alexilin@chromium.org>
Reviewed-by: Dustin Mitchell <djmitche@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Ciara McMullin <ciaramcmullin@google.com>
Reviewed-by: Matthew Wang <matthewmwang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1315907}
2024-06-17 16:17:14 +00:00
Bartek Nowierski
49b1a4582d [BRP] Take a step towards enforcing raw_ptr/ref in Renderer code
We intend to exclude only a handful specific sub-directories (for perf
reasons). This CL removes the broad exclusions from the rewriter and
the enforcing clang plugin.

There is a risk that by the time the plugin rolls into Chromium,
someone will add a raw pointer, which will cause the plugin
to error out and block the roll-out. Therefore, add those broad
exclusions into BUILD.gn temporarily -- they'll be removed after
the plugin rolls, once we confirm that all pointers in those
directories are properly rewritten.

In other words, this CL doesn't change the clang plugin enforcement
behavior.

Bug: 40064499, 331846123
Change-Id: Ia95e8df846d167521a5ac43cc63e556002702ee9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5600329
Auto-Submit: Bartek Nowierski <bartekn@chromium.org>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Bartek Nowierski <bartekn@chromium.org>
Reviewed-by: Keishi Hattori <keishi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1312344}
2024-06-08 00:24:35 +00:00
Erik Chen
5416b3a65a Fix presubmit line wrap.
The explanation parameter is an iterable. The previous explanations were
written as ("explanation") which becomes a string iterable, one
character per line. This should instead be ("explanation",), which is a
one-tuple.

Change-Id: Ided5a74938300dd3eab73bdeec9eb5cc1e756459
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5605485
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1312186}
2024-06-07 19:49:03 +00:00
Bartek Nowierski
f9f1b6635c [BRP] Semi-automated T* -> raw_ptr<T> Renderer rewrite 'refresh'
This time we're allowing pointers in third_party/blink/public/web/, but also covering new ones that popped up under /renderer/

No performance regression has been observed on benchmarks:
https://pinpoint-dot-chromeperf.appspot.com/job/12b5674f810000
https://pinpoint-dot-chromeperf.appspot.com/job/15e0c119810000
https://pinpoint-dot-chromeperf.appspot.com/job/11a435cd810000
https://pinpoint-dot-chromeperf.appspot.com/job/128306a7810000

Bug: 40064499, 331846123
Change-Id: I0d5cb5cae26a084ba4ca9195e432858059b09ffd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5602549
Reviewed-by: Keishi Hattori <keishi@chromium.org>
Owners-Override: Keishi Hattori <keishi@chromium.org>
Auto-Submit: Bartek Nowierski <bartekn@chromium.org>
Commit-Queue: Keishi Hattori <keishi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1311752}
2024-06-07 04:59:00 +00:00