login: Make flags filter compatible with Chrome logic.

Chrome treats "--" the same as "-" as command flag prefix. Modify the
flag filter so that it works as expected.

BUG=b:36067509
TEST=Manual test

Change-Id: I1532fd2da8f253991cdc84304098e14b09a579ea
Reviewed-on: https://chromium-review.googlesource.com/509968
Commit-Ready: Long Cheng <lgcheng@google.com>
Tested-by: Long Cheng <lgcheng@google.com>
Reviewed-by: Dan Erat <derat@chromium.org>
(cherry picked from commit 911d00ce79d6bd2a5ede15f26c6a3de67c7c9992)
Reviewed-on: https://chromium-review.googlesource.com/514427
Commit-Queue: Long Cheng <lgcheng@google.com>
Trybot-Ready: Long Cheng <lgcheng@google.com>
1 file changed