base: CommandLineFlags.Add need to parse out value

This is probably source of flakes where tests use
@CommandLineFlags.Add("foo=bar"). Before this CL, the entire "foo=bar"
string is used as the switch, and a value of null, but only if the
java-only CommandLine instance is in use. So if any test tries to read
the switch during start up, it's racy.

Fix by parsing the command line in CommandLineFlags.

BUG=689758

Review-Url: https://codereview.chromium.org/2793903003
Cr-Commit-Position: refs/heads/master@{#461534}


CrOS-Libchrome-Original-Commit: 2b2e80acce1c253615137ccdd101e6c390458d23
1 file changed
tree: d154434ccdb8e8bc21d82079788310d6f0a8c22f
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/