0
Commit Graph

1753 Commits

Author SHA1 Message Date
Bailey Myers-Morgan
bd1221344f Dummy test / build rule for OpenScreen perf tests.
Bug: 403338499

Following structure from https://crrev.com/c/5727141.

Change-Id: I5c7290f3f4c43f553d368cb3c559c1d52fb3c4ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6354725
Reviewed-by: Jordan Bayles <jophba@chromium.org>
Reviewed-by: Zijie He <zijiehe@google.com>
Commit-Queue: Bailey Myers-Morgan <bmyersmorgan@google.com>
Reviewed-by: Muyao Xu <muyaoxu@google.com>
Cr-Commit-Position: refs/heads/main@{#1438465}
2025-03-26 16:09:16 -07:00
Henrique Nakashima
224ee248b1 Reland "Add _CheckAndroidNullAwayAnnotatedClasses PRESUBMIT check"
Doing a simpler check, not trying to figure out if the annotation is in the class declaration or on a method declaration. It would be
very rare for a method to be annotation and not the class.

This reverts commit ae8498e751.

Reason for revert: Fixed version

Original change's description:
> Revert "Add _CheckAndroidNullAwayAnnotatedClasses PRESUBMIT check"
>
> This reverts commit cfe861e365.
>
> Reason for revert: Doesn't ignore comments
>
> Original change's description:
> > Add _CheckAndroidNullAwayAnnotatedClasses PRESUBMIT check
> >
> > Warn when a .java file is missing @NullMarked and @NullUnmarked.
> >
> > Temporarily disabled in //android_webview and //chrome while migrating.
> >
> > Bug: 404884589
> > Change-Id: I38e331bcec6f3a3f2147c0999fd4dca8fef145d5
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6373892
> > Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
> > Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1435461}
>
> Bug: 404884589
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Change-Id: I669658f3f21cab9365f0c50b4e0191a1e6a608a0
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6377728
> Auto-Submit: Henrique Nakashima <hnakashima@chromium.org>
> Commit-Queue: Andrew Grieve <agrieve@chromium.org>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1435593}

Bug: 404884589
Change-Id: I11d0ed28bf1941e72df5dcc457fb9d7e62dc89ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6381838
Auto-Submit: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1436182}
2025-03-21 11:35:02 -07:00
Henrique Nakashima
ae8498e751 Revert "Add _CheckAndroidNullAwayAnnotatedClasses PRESUBMIT check"
This reverts commit cfe861e365.

Reason for revert: Doesn't ignore comments

Original change's description:
> Add _CheckAndroidNullAwayAnnotatedClasses PRESUBMIT check
>
> Warn when a .java file is missing @NullMarked and @NullUnmarked.
>
> Temporarily disabled in //android_webview and //chrome while migrating.
>
> Bug: 404884589
> Change-Id: I38e331bcec6f3a3f2147c0999fd4dca8fef145d5
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6373892
> Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1435461}

Bug: 404884589
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Change-Id: I669658f3f21cab9365f0c50b4e0191a1e6a608a0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6377728
Auto-Submit: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1435593}
2025-03-20 12:04:35 -07:00
Yiwei Zhang
5341bf062e add CheckNewDEPSHookReviewers presubmit check
It will make sure any new hooks added to the DEPS are reviewed by
people in OWNERS tagged with `For new DEPS hook`.

Change-Id: I2fc8d606a92f0b4d87a5b9dc5daa819e3f47012e
Bug: 396736534
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6313602
Reviewed-by: Dirk Pranke <dpranke@google.com>
Auto-Submit: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Gary Tong <gatong@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1435490}
2025-03-20 09:34:13 -07:00
Henrique Nakashima
cfe861e365 Add _CheckAndroidNullAwayAnnotatedClasses PRESUBMIT check
Warn when a .java file is missing @NullMarked and @NullUnmarked.

Temporarily disabled in //android_webview and //chrome while migrating.

Bug: 404884589
Change-Id: I38e331bcec6f3a3f2147c0999fd4dca8fef145d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6373892
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1435461}
2025-03-20 09:02:35 -07:00
Victor Hugo Vianna Silva
d9139fbe75 Upgrade abseil variant.h/utility.h presubmit warning to error
https://crrev.com/c/6343776 added a presubmit warning to prevent new
usages of these headers. We chose a warning so that it'd be possible
to bypass in case of initial issues. Now that it seems to work, this CL
upgrades the warning to error.

Bug: 40242126
Change-Id: I740082f960468b563d435124460dfed0aa052833
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6368501
Reviewed-by: Dominic Battré <battre@chromium.org>
Commit-Queue: Victor Vianna <victorvianna@google.com>
Cr-Commit-Position: refs/heads/main@{#1435063}
2025-03-19 13:59:08 -07:00
Victor Hugo Vianna Silva
6e84e8d4a0 Ban abseil variant.h and utility.h libraries
These are just delegating to std now. All usages outside of
third_party (plus blink) were migrated to use std directly.

https://source.chromium.org/chromium/chromium/src/+/main:third_party/abseil-cpp/absl/types/variant.h;l=33-44;drc=b3defd119a78557e3d5d10f0683c2380b635c67e

https://source.chromium.org/chromium/chromium/src/+/main:third_party/abseil-cpp/absl/utility/utility.h;l=35-50;drc=b3defd119a78557e3d5d10f0683c2380b635c67e

Bug: 40242126
Change-Id: I9aa978a2477c040f8bd73f77498e14a356a1454d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6343776
Auto-Submit: Victor Vianna <victorvianna@google.com>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1434552}
2025-03-18 17:32:00 -07:00
Erik Chen
f12a066493 Add presubmit for not using CreateBrowserWithTestWindowForParams.
This is a natural extension of not using BrowserWithTestWindowTest and
TestWithBrowserView.

Bug: 384547121
Change-Id: I5cbec94e88bd9aa07cdec08fd42e96fae5c563e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6355343
Commit-Queue: Erik Chen <erikchen@chromium.org>
Reviewed-by: Eshwar Stalin <estalin@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1432446}
2025-03-13 16:30:34 -07:00
Nate Fischer
d541ff839b Android: presubmit check against IS_DESKTOP_ANDROID
No change to production behavior. This adds a presubmit check for
IS_DESKTOP_ANDROID. The goal is to confine use of this value to chrome/
layer and other higher layers, but to ban this in content/ layer and
below.

This has "warning" status only so that it can be bypassed in case of
false positive, however the intention is that generally
IS_DESKTOP_ANDROID should only live in higher layers.

Fixed: 401628399
Test: vpython3 PRESUBMIT_test.py
Change-Id: Ice010be105a476100acf5cf70a3d262228916c33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6336803
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Nate Fischer <ntfschr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1431159}
2025-03-11 14:34:19 -07:00
Victor Hugo Vianna Silva
c86846c054 Roll third_party/grpc to ff8d12a129eed
Note to reviewers: don't review third_party/grpc/sources/, review
the rest and verify that update.sh is a no-op locally.

- third_party/grpc/generate_gn.sh doesn't work properly for upb
  dependencies, so this CL updates those targets manually based on the
  upstream Bazel files. The issue is documented in
  third_party/grpc/README.chromium.
- RegisterBuiltins() for plugin support is no longer exposed in a
  public header so the call is removed from grpc_plugin_registry.cc.
- test/core/json/corpus/ was moved [1] then deleted [2]. So
  corresponding fuzzing tests in Chromium are deleted too.

[1] https://github.com/grpc/grpc/pull/38120/files#diff-e5771683b0b08cc7db59fc5dbba5f666187945fd62ab5ee76c6935d590e84b48
[2] https://github.com/grpc/grpc/pull/38534/files

NO_IFTTT=False positives inside the forked repo.

Bug: 40285204
Change-Id: I7c3eafdf4e3cac9626d5d81a2c847014a4a849bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6276328
Auto-Submit: Victor Vianna <victorvianna@google.com>
Reviewed-by: Vigen Issahhanjan <vigeni@google.com>
Reviewed-by: Dominic Battré <battre@chromium.org>
Commit-Queue: Dominic Battré <battre@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1429336}
2025-03-06 22:56:37 -08:00
Peter Wen
2dcfa6eb07 android: Create generate_orderfile targets
Add new arm32 and arm64 targets:
- generate_orderfile_android_trichrome_chrome_bundle
- generate_orderfile_android_trichrome_chrome_64_32_bundle

Add --chromium-output-directory as an arg passed to run_benchmark for
the two scenarios that generate_orderfile.py calls.

For now, use --streamline-for-debugging until the bots are set up and
passing.

R=mheikal@chromium.org

Bug: 380082658
Change-Id: I7ae8d46d3b1d31202162474bd9b8d598da70afdc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6321261
Commit-Queue: Peter Wen <wnwen@chromium.org>
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Auto-Submit: Peter Wen <wnwen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1428003}
2025-03-04 14:42:52 -08:00
Keren Zhu
f06d757d11 views: Warn about usage of AddChildViewRaw using PRESUBSMIT
View::AddChildViewRaw is prone to memory bugs. This CL adds a PRESUBMIT
to warn against it.

This is a warning instead of error because there are cases that are
still difficult to be migrated off.

Bug: 40485510
Change-Id: I6de7a23a33eda2aa8f16b0edf21639f242ff01cc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6321246
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Keren Zhu <kerenzhu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1427552}
2025-03-03 21:32:36 -08:00
Andrew Rayskiy
7ae2b5d135 iwa: Guard IWA-KD component by features::kIsolatedWebApps on Windows
These two features will be launched together anyway; this reshuffle aims
to simplify the testing process.

This CL also scopes the kIwaKeyDistributionComponent feature visibility
on about://flags to MacOS and Linux.

Bug: 399048404
Change-Id: I73146e05ee5d7f791242ffbf11d9cb5fc233183c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6298259
Reviewed-by: Joshua Pawlicki <waffles@chromium.org>
Reviewed-by: Simon Hangl <simonha@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Andrew Rayskiy <greengrape@google.com>
Cr-Commit-Position: refs/heads/main@{#1426374}
2025-02-28 08:59:38 -08:00
Georg Neis
a7f94e6a93 Remove IS_CHROMEOS_LACROS build flag
All uses are gone.

Bug: b:354842935, b:365742770, 373971535
Change-Id: If52381bcab05853ff5db6feca5449ce87d7943d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299673
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Dominic Battré <battre@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426148}
2025-02-27 23:01:48 -08:00
Riley Wong
49be8a887f Fix re compilation of presubmit.py
Some presubmit regex needs to be escaped by r,
otherwise python can not compile them.

Python 3.12 has mad these into warnings and they're flooding
the presubmit messages.

Bug: 397963615
Change-Id: I5ddcb9cf1744438d163e6b25636e6861e665d7bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6305727
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Gary Tong <gatong@chromium.org>
Commit-Queue: Riley Wong <rgw@google.com>
Cr-Commit-Position: refs/heads/main@{#1425455}
2025-02-26 16:38:23 -08:00
Dirk Pranke
e4df279796 Fix invalid regexp escape sequences in //PRESUBMIT.py.
Python 3.12 emits warnings if you use an unrecognized escape sequence
in a string. There were many occurrences of '\.' in PRESUBMIT.py, so
this fixes them.

Change-Id: Ibd07c56eaa6231965c75a943ade567bc8395679a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6278091
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/main@{#1425265}
2025-02-26 10:39:35 -08:00
Jenna Himawan
859865d196 [a11y] Presubmit ban disruptive a11y announcements
Ban announceForAccessibility and TYPE_ANNOUNCEMENT, deprecated in
Baklava (Android 16).

Fixed: 376759129
Test: PRESUBMIT_test.py
Change-Id: I55b9e8f77d5ec4cb865da94f230a3c57d4bcf4e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6301847
Commit-Queue: Jenna Himawan <jhimawan@google.com>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Lijin Shen <lazzzis@google.com>
Cr-Commit-Position: refs/heads/main@{#1424803}
2025-02-25 14:22:31 -08:00
Erik Chen
e89ebe3e2c Add ban rule for CreateBrowserWithTestWindow
This is a variant of TestWithBrowserView.

Bug: 384547121
Change-Id: Iabff08ccc30c2e8ce452f8e467a794ca84445b12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6292356
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1423521}
2025-02-21 18:46:49 -08:00
Tom Sepez
d3272cd6cb Add a presubmit rule for subspan(0u, n).
Using first(n) is shorter and can give better code in most cases.

Change-Id: I10747631af5f2d9d18fc57b5e25d49e99b83b377
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6288446
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1423283}
2025-02-21 11:11:31 -08:00
Tom Sepez
8e6285871f Use more precise regex in PRESUBMIT.py CheckTodoBugReferences().
Avoid matching TODO(nnnnnnnn) against UNSAFE_TODO(expr).

Change-Id: I118ee3f2a01f1d0b70aa0c752667fd03b1cb3f0a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6265826
Reviewed-by: Alison Gale <agale@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1420255}
2025-02-13 18:18:55 -08:00
dpapad
fd421fb7d6 Update CheckForWindowsLineEndings to check JS/TS/CSS/HTML/SVG files.
Bug: None
Change-Id: Ic74cbf5585bf17b7f6b565878c28c81b4b3ca22d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6256276
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/main@{#1419624}
2025-02-12 16:47:32 -08:00
Shuai Xia
0d99ebfdaa Add "Predator-For-Me" to the list of robots.
See https://source.chromium.org/chromium/infra/infra_superproject/+/main:infra/appengine/predator/README.md for more information about the project.

Change-Id: Ib85f57d5e6e4ddc20121a58720df39a112a35074
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6249486
Reviewed-by: Dominic Battré <battre@chromium.org>
Commit-Queue: Shuai Xia <shuaixia@google.com>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1418963}
2025-02-11 15:47:59 -08:00
Anton Bershanskyi
425334948d [Presubmit] Standardize paths in PRESUBMIT.py on Windows
Windows uses back slash \ as a path separator while other OSes use
forward slash. CL 6236404 introduced depot_tools AffectedFile.UnixLocalPath()
which provides a UNIX-style platform-independent path on all systems.
This CL updates PRESUBMIT.py to take advantage of this new method.

Bug: None
Change-Id: Iccd71ccb5192ff56efbc822dc2ae52304b61f778
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6218309
Commit-Queue: Anton Bershanskyi <bershanskyi@gmail.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/main@{#1418864}
2025-02-11 13:01:27 -08:00
Andrew Grieve
851a7be79e Android: Remove Mockito.mock() R8 work-arounds
R8 now natively supports tracing of Mockito.mock() and Mockito.spy()

Bug: 389166093
Change-Id: Iffa791d1af203f621130f247fa995f038df9d6ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6226560
Reviewed-by: Sam Maier <smaier@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1418690}
2025-02-11 08:41:01 -08:00
Peter Boström
5460a95638 Clean up base::debug::DumpWithoutCrashing variants
This also removes a few direct calls from ash into
crash_reporter::DumpWithoutCrashing() which bypasses setting
crash-location keys. These may (but probably unlikely) be why we're
seeing a few bad-stack DWCs without location keys set.

Bug: 386552744
Change-Id: Id7f3e3a52a12decf2a8a7a75f3de047c3c1f3f1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6246294
Commit-Queue: Peter Boström <pbos@chromium.org>
Owners-Override: Peter Kasting <pkasting@chromium.org>
Auto-Submit: Peter Boström <pbos@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1417969}
2025-02-09 21:07:59 -08:00
Evan Stade
23a77dae52 Fix protobuf exception for IPC message presubmit check.
Bug: 328417294
Change-Id: Ib3d5e307cb6e0b4aa39e0ce1d29a9c477a6e3bd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6237095
Reviewed-by: Shibalik Mohapatra <shibalik@chromium.org>
Owners-Override: Shibalik Mohapatra <shibalik@chromium.org>
Commit-Queue: Shibalik Mohapatra <shibalik@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1416984}
2025-02-06 13:15:31 -08:00
Georg Neis
e5817ebe06 infra: Remove references to obsolete Lacros roller accounts
Lacros is gone.

Bug: b:370356213
Change-Id: Ib6daefe12fc2ce2f0974ea30037d26c827b99ea2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6228735
Reviewed-by: Kuan Huang <kuanhuang@chromium.org>
Commit-Queue: Erik Staab <estaab@chromium.org>
Auto-Submit: Georg Neis <neis@chromium.org>
Reviewed-by: Erik Staab <estaab@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1416584}
2025-02-05 19:47:31 -08:00
Andrew Grieve
170b978564 Android: Make R8 and TraceReferences separate build steps
On this CQ job, Proguard took 2:45, and the subsequent tracerefernces
step took 15s. So, locally, this should save 10-15s for devs needing
to enable proguard.

Bug: 371461396
Change-Id: I7de30efd388a294d020cff4460055251369dde23
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6221598
Reviewed-by: Sam Maier <smaier@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1414931}
2025-02-03 07:54:53 -08:00
Manish Goregaokar
dc9e3511f7 Exclude Rust crates from TODO check
Change-Id: Id01bae537fe6547824a3872dc8e3827dd7f0192e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6223536
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Commit-Queue: Manish Goregaokar <manishearth@google.com>
Auto-Submit: Manish Goregaokar <manishearth@google.com>
Cr-Commit-Position: refs/heads/main@{#1414918}
2025-02-03 07:30:58 -08:00
AbdAlRahman Gad
1ae83b4a9e [cleanup] Remove some std::to_string usages
Signed-off-by: AbdAlRahman Gad <abdobngad@gmail.com>
Bug: 335672557
Change-Id: I0f51870b92b52e8bf01742abe3511e9a678ff02b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6197234
Reviewed-by: Rick Byers <rbyers@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1413276}
2025-01-29 18:32:14 -08:00
Peter Kasting
3b811ffd3c Remove base/ranges/.
Bug: 386918226
Change-Id: If9ebb8ca5677985565f30df0aaf1ce4d6c91e347
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6215440
Owners-Override: Lei Zhang <thestig@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1413176}
2025-01-29 14:20:16 -08:00
Andrew Grieve
2d972e5f19 Android: Add <permission> elements to Stub APKs
Bug: 392312800
Change-Id: I5069cf94a4b752f3acfcad153e72bb435feb6753
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6207474
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1412402}
2025-01-28 10:28:14 -08:00
Mark Pearson
63204dad1a Revert "Add presubmit check to prevent anonymous namespace usage in headers"
This reverts commit ba1e976cd9.

Reason for revert:
Causes failures on win-presubmit bot, starting here when it landed:
https://ci.chromium.org/ui/p/chromium/builders/ci/win-presubmit/11338/overview

It seems the existing problems in the repository were not cleaned up before landing this new check.

Full error message:
===
These files have an anonymous namespace which is not permitted in header files, for more information see (https://google.github.io/styleguide/cppguide.html#Internal_Linkage): 
  ash\accelerators\ash_accelerator_configuration.h
  ash\accessibility\ui\accessibility_confirmation_dialog.h
  ash\ambient\test\ambient_ash_test_base.h
  ash\glanceables\classroom\fake_glanceables_classroom_client.h
  ash\hud_display\hud_settings_view.h
  ash\lobster\lobster_image_actuator.h
  ash\login\ui\lock_contents_view_constants.h
  ash\login\ui\lock_screen_media_view.h
  ash\system\accessibility\dictation_bubble_view.h
  ash\system\diagnostics\fake_diagnostics_browser_delegate.h
  ash\system\focus_mode\focus_mode_chip_carousel.h
  ash\system\focus_mode\focus_mode_detailed_view.h
  ash\system\media\quick_settings_media_view.h
  ash\system\network\fake_network_detailed_view_delegate.h
  ash\system\network\network_detailed_network_view.h
  ash\system\notification_center\notification_grouping_controller.h
  ash\system\power\power_sounds_controller.h
  ash\system\time\calendar_model.h
  ash\system\time\calendar_unittest_utils.h
  ash\webui\eche_app_ui\accessibility_tree_converter.h
  ash\webui\help_app_ui\search\search_handler.h
  ash\webui\shortcut_customization_ui\backend\accelerator_layout_table.h
  base\allocator\miracle_parameter.h
  base\allocator\partition_allocator\src\partition_alloc\shim\allocator_shim_override_apple_default_zone.h
  base\allocator\partition_allocator\src\partition_alloc\shim\allocator_shim_override_glibc_weak_symbols.h
  base\allocator\partition_allocator\src\partition_alloc\shim\allocator_shim_override_ucrt_symbols_win.h
  base\allocator\partition_allocator\src\partition_alloc\shim\shim_alloc_functions.h
  base\memory\safety_checks.h
  base\task\lazy_thread_pool_task_runner.h
  base\task\thread_pool\pooled_single_thread_task_runner_manager.h
  base\test\fuzztest_support.h
  base\time\time.h
  chrome\browser\accessibility\live_caption\live_caption_speech_recognition_host_browsertest.h
  chrome\browser\android\metrics\android_session_durations_service.h
  chrome\browser\ash\app_list\search\arc\arc_app_shortcut_search_result.h
  chrome\browser\ash\app_restore\app_restore_arc_task_handler.h
  chrome\browser\ash\arc\instance_throttle\arc_active_window_throttle_observer.h
  chrome\browser\ash\file_manager\trash_io_task.h
  chrome\browser\ash\guest_os\vm_sk_forwarding_native_message_host.h
  chrome\browser\ash\lobster\lobster_insertion.h
  chrome\browser\ash\login\existing_user_controller_base_test.h
  chrome\browser\ash\login\test\feature_parameter_interface.h
  chrome\browser\ash\policy\skyvault\test\skyvault_test_utils.h
  chrome\browser\ash\smb_client\smb_service_test_base.h
  chrome\browser\ash\system_web_apps\apps\personalization_app\keyboard_backlight_color_metrics_provider.h
  chrome\browser\chromeos\extensions\telemetry\api\events\event_router.h
  chrome\browser\extensions\api\messaging\native_message_echo_host.h
  chrome\browser\extensions\context_menu_helpers.h
  chrome\browser\media\prefs\capture_device_ranking.h
  chrome\browser\metrics\chrome_metrics_service_accessor.h
  chrome\browser\metrics\structured\chrome_structured_metrics_delegate.h
  chrome\browser\metrics\structured\metadata_processor_ash.h
  chrome\browser\nearby_sharing\wifi_network_configuration\fake_wifi_network_configuration_handler.h
  chrome\browser\page_load_metrics\observers\third_party_cookie_deprecation_page_load_metrics_observer.h
  chrome\browser\password_manager\password_change_delegate_impl.h
  chrome\browser\performance_manager\decorators\helpers\page_live_state_decorator_helper.h
  chrome\browser\permissions\crowd_deny_preload_data.h
  chrome\browser\persisted_state_db\session_proto_db_factory.h
  chrome\browser\profile_resetter\profile_resetter.h
  chrome\browser\push_messaging\push_messaging_service_impl.h
  chrome\browser\screen_ai\public\optical_character_recognizer.h
  chrome\browser\screen_ai\screen_ai_service_router.h
  chrome\browser\ui\ash\wallpaper\wallpaper_controller_client_impl.h
  chrome\browser\ui\cocoa\history_menu_bridge.h
  chrome\browser\ui\global_media_controls\media_item_ui_metrics.h
  chrome\browser\ui\passwords\manage_passwords_ui_controller.h
  chrome\browser\ui\performance_controls\performance_intervention_button_controller.h
  chrome\browser\ui\performance_controls\test_support\memory_saver_browser_test_mixin.h
  chrome\browser\ui\safety_hub\abusive_notification_permissions_manager.h
  chrome\browser\ui\safety_hub\menu_notification_service.h
  chrome\browser\ui\signin\signin_view_controller.h
  chrome\browser\ui\views\desktop_capture\desktop_media_tab_list.h
  chrome\browser\ui\views\frame\picture_in_picture_browser_frame_view.h
  chrome\browser\ui\views\global_media_controls\media_item_ui_cast_footer_view.h
  chrome\browser\ui\views\global_media_controls\media_item_ui_device_selector_view.h
  chrome\browser\ui\views\global_media_controls\media_item_ui_footer_view.h
  chrome\browser\ui\views\site_data\page_specific_site_data_dialog.h
  chrome\browser\ui\views\web_apps\frame_toolbar\web_app_frame_toolbar_view.h
  chrome\browser\ui\web_applications\sub_apps_service_impl.h
  chrome\browser\ui\web_applications\test\isolated_web_app_test_utils.h
  chrome\browser\ui\webui\ash\diagnostics_dialog\diagnostics_dialog.h
  chrome\browser\ui\webui\ash\login\consolidated_consent_screen_handler.h
  chrome\browser\ui\webui\ash\sanitize_dialog\sanitize_dialog.h
  chrome\browser\ui\webui\ash\settings\pages\apps\mojom\app_type_mojom_traits.h
  chrome\browser\web_applications\isolated_web_apps\isolated_web_app_update_manager.h
  chrome\browser\web_applications\preinstalled_web_app_manager.h
  chrome\common\read_anything\read_anything_constants.h
  chrome\test\base\ash\web_ui_browser_test.h
  chrome\test\base\chromeos\crosier\chromeos_integration_login_mixin.h
  chrome\updater\app\server\win\com_classes_legacy.h
  chromecast\media\base\aligned_buffer.h
  chromeos\ash\components\assistant\test_support\expect_utils.h
  chromeos\ash\components\carrier_lock\psm_claim_verifier_unittest.h
  chromeos\ash\components\game_mode\game_mode_controller.h
  chromeos\ash\components\nearby\presence\nearby_presence_service_impl.h
  chromeos\ash\components\phonehub\fake_multidevice_feature_access_manager.h
  chromeos\ash\components\phonehub\phone_hub_structured_metrics_logger.h
  chromeos\ash\components\string_matching\prefix_matcher.h
  chromeos\ash\components\string_matching\sequence_matcher.h
  chromeos\ash\experiences\arc\arc_browser_context_keyed_service_factory_base.h
  chromeos\ash\experiences\arc\metrics\arc_daily_metrics.h
  chromeos\ash\experiences\arc\window\arc_window_watcher.h
  chromeos\ash\services\quick_pair\public\mojom\fast_pair_traits.h
  components\autofill\ios\browser\form_suggestion_provider_query.h
  components\background_sync\background_sync_metrics.h
  components\commerce\core\product_specifications\product_specifications_set.h
  components\commerce\core\test_utils.h
  components\crash\core\common\crash_key.h
  components\discardable_memory\service\discardable_shared_memory_manager.h
  components\endpoint_fetcher\endpoint_fetcher.h
  components\exo\wayland\clients\test\client_version_test.h
  components\exo\wayland\compatibility_test\wayland_client_event_receiver_version_fixtures.h
  components\exo\wayland\wayland_dmabuf_feedback_manager.h
  components\feed\core\v2\public\ios\info_card_tracker.h
  components\global_media_controls\public\views\media_item_ui_detailed_view.h
  components\gwp_asan\client\thread_local_random_bit_generator.h
  components\leveldb_proto\internal\proto_database_impl.h
  components\leveldb_proto\testing\fake_db.h
  components\live_caption\views\caption_bubble.h
  components\metrics\structured\delegating_events_processor.h
  components\metrics\structured\events_processor_interface.h
  components\metrics\structured\recorder.h
  components\optimization_guide\core\model_handler.h
  components\optimization_guide\core\tflite_model_executor.h
  components\session_proto_db\session_proto_db.h
  components\unexportable_keys\unexportable_key_service_impl.h
  components\update_client\background_downloader_mac.h
  components\viz\service\debugger\viz_debugger.h
  content\browser\accessibility\web_contents_accessibility_android.h
  content\browser\back_forward_cache_test_util.h
  content\browser\background_sync\background_sync_base_browsertest.h
  content\browser\bluetooth\advertisement_client.h
  content\browser\client_hints\critical_client_hints_throttle.h
  content\browser\locks\lock_manager.h
  content\browser\presentation\presentation_test_utils.h
  content\browser\tracing\trace_report\trace_report_mojom_traits.h
  content\public\browser\sms_fetcher.h
  content\public\browser\storage_notification_service.h
  device\bluetooth\floss\exported_callback_manager.h
  extensions\browser\api\storage\settings_namespace.h
  gpu\ipc\client\gpu_context_tests.h
  media\base\eme_constants.h
  media\base\mock_media_log.h
  media\base\use_after_free_checker.h
  media\capture\video\mac\video_capture_device_decklink_mac.h
  media\cdm\cdm_wrapper.h
  media\device_monitors\device_monitor_mac.h
  media\formats\hls\types.h
  media\gpu\chromeos\shaders\shaders.h
  media\gpu\v4l2\mt21\mt21_util.h
  media\gpu\v4l2\v4l2_jpeg_encode_accelerator.h
  media\renderers\win\media_foundation_stream_wrapper.h
  native_client_sdk\src\examples\api\video_decode\testdata.h
  net\cert\internal\cert_issuer_source_sync_unittest.h
  net\cert\root_cert_list_generated.h
  net\cookies\cookie_store_change_unittest.h
  net\dns\stale_host_resolver.h
  net\nqe\socket_watcher.h
  net\nqe\socket_watcher_factory.h
  net\nqe\throughput_analyzer.h
  net\quic\quic_proxy_client_socket_test_base.h
  net\ssl\client_cert_store_unittest-inl.h
  net\tools\huffman_trie\huffman\huffman_builder.h
  net\traffic_annotation\network_traffic_annotation.h
  ppapi\cpp\input_event_interface_name.h
  ppapi\cpp\module_impl.h
  ppapi\examples\video_decode\testdata.h
  ppapi\tests\test_udp_socket.h
  sandbox\win\src\crosscall_params.h
  sandbox\win\src\process_thread_interception.h
  services\device\generic_sensor\orientation_test_data.h
  testing\multiprocess_func_list.h
  third_party\blink\renderer\bindings\core\v8\iterable.h
  third_party\blink\renderer\core\editing\finder\find_task_controller.h
  third_party\blink\renderer\core\layout\grid\grid_data.h
  third_party\blink\renderer\core\loader\document_loader.h
  third_party\blink\renderer\modules\canvas\canvas2d\base_rendering_context_2d.h
  third_party\blink\renderer\modules\compute_pressure\pressure_observer.h
  third_party\blink\renderer\platform\geometry\math_functions.h
  third_party\blink\renderer\platform\peerconnection\webrtc_connection_matchers.h
  third_party\blink\renderer\platform\scheduler\public\frame_or_worker_scheduler.h
  third_party\blink\renderer\platform\text\emoji_segmentation_category_inline_header.h
  tools\win\chromeexts\chrome_exts_command.h
  ui\accessibility\platform\fuchsia\semantic_provider_impl.h
  ui\base\class_property.h
  ui\base\clipboard\clipboard_test_template.h
  ui\events\fuchsia\util\pointer_event_utility.h
  ui\events\ozone\device\device_event.h
  ui\events\velocity_tracker\velocity_tracker.h
  ui\gfx\animation\keyframe\keyframed_animation_curve-inl.h
  ui\gfx\mojom\rrect_f_mojom_traits.h
  ui\gfx\mojom\selection_bound_mojom_traits.h
  ui\gl\delegated_ink_point_renderer_gpu.h
  ui\gl\gl_enums_implementation_autogen.h
  ui\webui\resources\cr_components\app_management\app_management_mojom_traits.h
===

which I got by copying and pasting from
https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket/8724556290967808561/+/u/presubmit/stdout

Original change's description:
> Add presubmit check to prevent anonymous namespace usage in headers
>
> Bug: 391905435
> Change-Id: I928d282bc3b626addc564889338cb7426e7cbe4c
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6192789
> Commit-Queue: Aaron Selya <selya@google.com>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1411842}

Bug: 391905435
Change-Id: I8753a2777b650bf5716c6364b3ba160c503a236e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6203269
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Mark Pearson <mpearson@chromium.org>
Auto-Submit: Mark Pearson <mpearson@chromium.org>
Owners-Override: Mark Pearson <mpearson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1411949}
2025-01-27 15:42:09 -08:00
Erik Chen
1396bbe886 Add ban rule for anonymous namespaces in header files.
See discussion at
https://groups.google.com/a/chromium.org/g/chromium-dev/c/qgUGhXjCFrs/m/QoVu31ClDQAJ

Change-Id: Ie54f9614075402dda481d4ef74fad157510042f8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6197921
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1411947}
2025-01-27 15:39:36 -08:00
selya
ba1e976cd9 Add presubmit check to prevent anonymous namespace usage in headers
Bug: 391905435
Change-Id: I928d282bc3b626addc564889338cb7426e7cbe4c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6192789
Commit-Queue: Aaron Selya <selya@google.com>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1411842}
2025-01-27 12:55:25 -08:00
Andrew Grieve
651ddb3e98 Android: Split out errorprone.py from compile_java.py
Siso uses script name to partition when commands should be run remotely
vs locally, so this makes it possible.

There is also a lot of errorprone-specific logic, so it's more organized
to have it in a separate script.

Bug: 391114802
Change-Id: Ib1eecfd6dd473e4f721d7c16c9c17270ddb72cbf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6191108
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Reviewed-by: Junji Watanabe <jwata@google.com>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1410095}
2025-01-22 19:27:34 -08:00
Terrence Reilly
313f44ff32 Fix tools/translation/upload_screenshots.py for Cog.
Git isn't available in Cog, and so when searching for grd files, we can't do a `git ls-files -- *.grd`.  Previously, we tried walking the repo to find all instances of _.grd_ files.  However, that meant that we were listing _.grd_ files in submodules, which we don't want.

Instead, we'll just skip the checks which involve _.grd_ file paths which are added to the repo but not added to the expectations file.  Since presubmits run in CQ, this shouldn't result in invalid repo states.  It's just a bit inconvenient in that edge case.

Alternatives considered:

- Use the grds present in the expectations files.
  - This is possible, but is equivalent to the current implementation.  (Effectively, we'd be saying that the expectation file is equivalent to the expectation file.)
- Make an RPC call to simulate the git ls-files result.
  - This would require getting the correct credentials, and would make the implementation significantly more complex.

For unit tests, I've added a new test data file for each test case involving Cog.  While we could have each of the missing files in one test data file, doing so would enforce the order errors are added to the list of errors.  So having a separate check for each is less prone to toil if the implementation is changed.

Change-Id: I5552185b817eb4bf962b23d2d6fad15ad9ddc020
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6177203
Reviewed-by: Mustafa Emre Acer <meacer@chromium.org>
Commit-Queue: Terrence Reilly <treilly@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/main@{#1409647}
2025-01-22 07:10:14 -08:00
Maksim Sisov
34bfc576d6 Clarify PRESUBMIT message for Lacros deprecation
The Lacros platform is deprecated, and its associated code is being removed. Previously, the PRESUBMIT script was updated to recommend transitioning to the IS_CHROMEOS build flag

However, this change introduced ambiguity, leading to the misinterpretation that IS_CHROMEOS_LACROS should be renamed to IS_CHROMEOS alongside the IS_CHROMEOS_ASH build flag.

This CL refines the PRESUBMIT message to clearly state:
1) Code under IS_CHROMEOS_LACROS must be removed.
2) The IS_CHROMEOS_ASH build flag should be renamed to IS_CHROMEOS.

This update aims to eliminate confusion and provide precise guidance during the
deprecation process.

Bug: 388039763
Change-Id: I0cdd7a788da220ecca17f021a1597d2c41b2c05f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6169131
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Rick Byers <rbyers@chromium.org>
Commit-Queue: Maksim Sisov <msisov@igalia.com>
Reviewed-by: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405919}
2025-01-13 23:03:12 -08:00
Peter Kasting
5fdcd78b61 Ban std::aligned_storage and std::aligned_union.
Also removes nearby PRESUBMIT warning about QuitCurrent, which is long
gone.

Bug: 388068052
Change-Id: I3ec05ecc77331336723f839107e491eedfaf2128
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6172569
Commit-Queue: Rick Byers <rbyers@chromium.org>
Reviewed-by: Rick Byers <rbyers@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405502}
2025-01-13 06:57:07 -08:00
Peter Kasting
f379c02652 More std::ranges compatibility fixes: third_party/blink/
Bug: 386918226
Change-Id: I1742f144583716b76fe26833f4751d4a217a384b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6164522
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1405479}
2025-01-13 06:01:00 -08:00
Hidehiko Abe
5160181a4f Move ash/components/arc to chromeos/ash/experiences/arc Part 4.
This CL moves ash/components/arc/[n-s].* directories.

BUG=386148857
TEST=Tryjob

Change-Id: I9007732a6a847e57337495111fcfc7790ed85591
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6166689
Reviewed-by: Hugo Benichi <hugobenichi@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Rouslan Solomakhin <rouslan@chromium.org>
Commit-Queue: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405294}
2025-01-12 08:17:35 -08:00
Wenyu Fu
0005ab85ac Fix typo for wrong_robolectric_test_runner_errors
It should be BaseRobolectricTestRunner, not BaseRobolectricTestRule

Change-Id: Ida88eac8b20dde3d22eab5e8817b001b9e8c71f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6139890
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Wenyu Fu <wenyufu@chromium.org>
Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1401874}
2025-01-03 10:13:26 -08:00
Andrew Grieve
acac4244d3 Android: Add a depfile to bytecode_processor.py and rename it
New name: check_for_missing_direct_deps.py

Bug: 40748103
Change-Id: I667d3de8c5b32cd5f34ec5a1b49ae098b5a95470
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6108094
Reviewed-by: Peter Wen <wnwen@chromium.org>
Commit-Queue: Peter Wen <wnwen@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1399307}
2024-12-20 11:39:42 -08:00
Andrew Grieve
5a66ae7641 Add a PRESUBMIT to ensure Robolectric tests use BaseRobolectricTestRunner
Bug: 383779576
Change-Id: Ica45a4591554acb2ff2f1c7f658185de0353ca5f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6092006
Commit-Queue: Yaron Friedman <yfriedman@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1395951}
2024-12-13 07:21:53 -08:00
Greg Thompson
90ea3c2ef1 [etw tracing] Refactor EtwSystemDataSource for testing
This is a refactor of EtwSystemDataSource with no intended behavior
change (aside from a small bug fix or two). The motivation is to make
the ETW consumer easier to test and easier to expand with more
functionality in subsequent CLs.

In particular:

- EtwSystemDataSource::Consumer is now EtwConsumer.
- The ProcessEventRecord implementation now dispatches to per-provider
  event handling functions based on the provider guid.
- LostEvent records now emit DLOG messages for diagnostic purposes.
- Perfetto events are only generated when there is valid data to give
  them. Previously, an EtwTraceEvent was created for every ETW event
  originating from the Thread provider, but only populated for valid
  CSwitch events.
- EtwConsumerTest (was EtwSystemDataSource) exercises more of the ETW
  event processing code.

Bug: 41497361
Change-Id: I544533aed9c7974f3ee8bc77bf5d3d384a93f9de
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6084478
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Etienne Pierre-Doray <etiennep@chromium.org>
Commit-Queue: Greg Thompson <grt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1394798}
2024-12-11 05:56:42 -08:00
Sylvain Defresne
781b9f95b9 [ios] Requires inheriting from ProfileKeyedServiceFactoryIOS
As https://crbug.com/363173340 as been fixed, KeyedService factories
inherit from (Refcounted)?ProfileKeyedServiceFactoryIOs, so forbid
direct inheritance from (Refcounted)?BrowserStateKeyedServiceFactory.

Bug: 363173340
Change-Id: I5a57bd417bbfa50c8c6d4653a22444fb8f595d9b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6084546
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1394726}
2024-12-11 09:36:18 +00:00
Joanna Wang
130e7bdd6b PRESUBMIT: check if DEPS file is an existing file rather than path.
Bug: 382703190
Change-Id: I6fca194462fe20a4bd4dcd63a531970d91360c06
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6081832
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Joanna Wang <jojwang@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1394373}
2024-12-10 17:39:03 +00:00
dpapad
7fcdfc4dfa WebUI: Move ui/webui/resources/css/overlay.css next to its last usage.
Bug: None
Change-Id: I9e2dcf0cebe094c708a03dc46f5ee6ba49ad9192
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6072121
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1392672}
2024-12-06 01:21:38 +00:00
Georg Neis
a805d21567 Delete build/lacros/*
Lacros is not getting built anymore.

Bug: b:370356213
Change-Id: I130e4ed91cff48316604c89e803a186a95824a01
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6054826
Reviewed-by: Sven Zheng <svenzheng@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390756}
2024-12-03 02:17:15 +00:00
Peter Kasting
66c1f75f22 Fix presubmit check to use os_path.join instead of '/'.
This fixes a buggy presubmit check on Windows.

Bug: none
Change-Id: I551ed576c523b5932f90d38835b0e2780d8765a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6060499
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390317}
2024-12-02 15:28:37 +00:00