Propagate feature overrides to services

When ServiceProcessLauncher launches a service in a new process, it
passes command line arguments to the new process. However, the values of
--enabled-features and --disabled-features are not necessarily correct
as features might have been overridden by code. This happens especially
in tests that try a specific feature regardless of command line
arguments. There are also tests that remove these flags from command
line entirely and only keep track of features in base::FeatureList.

This is already done in most other places that launch a new process
(e.g. in browser).

BUG=941057

Change-Id: Icb655c9c0d6f21823d885c8091481b5d4cad8af8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1571489
Reviewed-by: Ken Rockot <rockot@google.com>
Commit-Queue: Mohsen Izadi <mohsen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653707}
1 file changed