[go: nahoru, domu]

login: Pass feature flags in separate command line switch.

This changes the code to maintain the set of feature flags separately
from command line switches and pass them in encoded form as the
argument to the new --feature-flags command line switch. This will
allow Chrome to translate feature flag configuration to command line
switches internally as is already the case for non-Chrome OS
platforms.

BUG=chromium:1073940
TEST=New unit test.

Cq-Depend: chromium:2593204
Change-Id: I450e60c128d53cfe24dcff20787ab5d61c86c664
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2560128
Tested-by: Mattias Nissler <mnissler@chromium.org>
Commit-Queue: Mattias Nissler <mnissler@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
NOKEYCHECK=True
GitOrigin-RevId: 9c3e7d9e3db591bb5dfaac32470afda8f537578a
2 files changed
tree: 9bce4399e9836ea4a1d33dcddc961715edcf5ef2
  1. constants/
  2. dbus/
  3. src/
  4. switches/
  5. .gitignore
  6. BUILD.gn
  7. build.rs
  8. Cargo.toml
  9. LICENSE
  10. OWNERS
  11. README.md
  12. system_api.pc
README.md

This directory (platform2/system_api) contains constants and definitions like D-Bus service names that are shared between Chromium and Chromium OS.

This directory is only for things like headers and .proto files. No implementation should be added.

When writting a .proto file make sure to use:

option optimize_for = LITE_RUNTIME;

This will force usage of a lite protobuf instead of a full/heavy weight protobuf. The browser only links against the light version, so you will get cryptic link errors about missing parts of Message if you define a protobuf here and then try to use it in Chrome. Currently CrOS links against the full protobuffer library, but that might change in the future.

When declaring a protobuf, avoid use of required unless it is exactly what you mean. “Required is Forever” and very rarely should actually be used. Consult Protocol Buffer Basics: C++ for a detailed of this issue.