0
Go to file
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
2025-01-22 07:08:13 -08:00
2025-01-22 06:56:13 -08:00
2025-01-21 12:13:23 -08:00
2025-01-16 11:12:45 -08:00
2025-01-21 12:13:23 -08:00
2025-01-21 12:55:49 -08:00
2025-01-21 12:13:23 -08:00
2025-01-10 13:26:48 -08:00
2025-01-21 18:03:25 -08:00

Logo Chromium

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.

The project's web site is https://www.chromium.org.

To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.

Documentation in the source is rooted in docs/README.md.

Learn how to Get Around the Chromium Source Code Directory Structure.

For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.

If you found a bug, please file it at https://crbug.com/new.

Description
Chromium是一个开源浏览器项目,提供了一种安全、快速、稳定的方法来体验Web。该浏览器可以在多个平台上下载,包括Mac、Windows、Linux和ChromiumOS。项目原始地址: https://chromium.googlesource.com/chromium/src.git
https://www.mobibrw.com/gitea-mirrors/chromium/src.git
Readme BSD-3-Clause 89 GiB
Languages
C++ 74.4%
Java 8.2%
Objective-C++ 4.6%
TypeScript 4%
Python 2.5%
Other 6.1%