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}
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}
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}
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}
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}
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}
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}
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}
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}
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}
This has been true in practice forever, but for a while it wasn't clear
if we would someday migrate to it (bug 40256238). At this point that's
not plausibly feasible due to the API additions in base::span (split_at,
copy_from, to_fixed_extent, etc.), so clarify the status.
Bug: 40284755
Change-Id: Icc3669dae5e309611bb916088f8229f9ffca5442
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6050662
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1388397}
This adds a generic error message to the Credential Provider Extension
for a few edge cases which are currently unhandled:
* User has disabled "Offer to save passwords"
* User has disabled password sync at the account level
This is a bit of an emergency fix to ensure users don't get into a bad
state in M132. Because we are past branch and will need to attempt to
merge this back, we cannot add new strings (hence the generic text) and
don't have time to prepare a custom icon. We did the best we could with
what was already on hand :)
In M133+, we will remove this error message and replace it with better
ones.
This CL also extends the PRESUBMIT exemption for the use of
systemImageNamed: to other app extensions besides just
search_widget_extension. The same include issues apply to extensions
generally (ref.
https://chromium-review.googlesource.com/c/chromium/src/+/4334347).
Screenshot: go/generic-error-screenshot
Bug: 379247744
Change-Id: I5fc32565ad821c800a2c73667573a62901b23255
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6025258
Commit-Queue: Tommy Martino <tmartino@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Rafał Godlewski <rgod@google.com>
Cr-Commit-Position: refs/heads/main@{#1385818}
Lacros is deprecated. We're in process of removal all code under
_LACROS and and renaming IS_CHROMEOS_ASH to IS_CHROMEOS. Once that's
done, the macros will be removed.
This CL adds a presubmit rule so that no new usages of these macros
are introduced.
Bug: 373971535, 373972275
Change-Id: I6e37aee4a86f15e6d67816cf15e61965d984f38e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6023125
Reviewed-by: Rick Byers <rbyers@chromium.org>
Commit-Queue: Maksim Sisov <msisov@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1384027}
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}
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}