commit | fa08692fb0c3ff4453ed5f7d9005889877a21d11 | [log] [tgz] |
---|---|---|
author | mayuko aiba <mayukoaiba@google.com> | Fri Jan 12 03:58:38 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 12 03:58:38 2024 |
tree | 5015a26096beae65219cc96a35be0d01c8f42c10 | |
parent | da0736dc268fb51bcc77dee07eff304a72078f40 [diff] |
CommandLine: Add `FromArgvWithoutProgram` This CL adds a static function named `FromArgvWithoutProgram`. This function allows to make a safe CommandLine object constructed without program path. Involved with this change, `AppendSwitchesAndArguments` becomes a function which appends switches and arguments from the first item in `<vector>` without any changes to arguments of the function. The callers are also modified to fit this. Bug: 1513045 Test: CommandLineTest.CommandLineFromArgvWithoutProgram Change-Id: I72240e349e0a3b83be9b821842ad57dc62225ad8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5179273 Reviewed-by: Wez <wez@chromium.org> Commit-Queue: Mayuko Aiba <mayukoaiba@google.com> Reviewed-by: Eriko Kurimoto <elkurin@chromium.org> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#1246224}
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.