Fix Android renderer crash related to field trial synchronization.

This was caused by field trials that were not yet finalized to
use their default group name in the state string. Then, when
they later are finalized (as a result of code querying them
in the browser process, for example), they would update the
renderers with their new state and cause an inconsistency
to be detected.

This issue was introduced by the following CL which changed
all trials to be sent to renderers:
https://codereview.chromium.org/700953002

This CL fixes the issue by finalizing all trials when their
state is serialized to be given to the renderer command line.

BUG=359406

Review URL: https://codereview.chromium.org/1533103003

Cr-Commit-Position: refs/heads/master@{#366405}


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