[Fuchsia] Allow FontProvider access in renderers. Use it.

ChildProcessLauncherHelper now uses fuchsia::ServiceDirectoryProxy to
allow renderers access FontProvicer service. Also enabled
FuchsiaFontManager to be used by default.

Bug: 800156
Change-Id: I49336251c958a5fb4d74a0b933e9bbc62ea88f9f
Reviewed-on: https://chromium-review.googlesource.com/1117872
Commit-Queue: Sergey Ulanov <[email protected]>
Reviewed-by: Wez <[email protected]>
Reviewed-by: Nico Weber <[email protected]>
Reviewed-by: Nasko Oskov <[email protected]>
Cr-Commit-Position: refs/heads/master@{#572873}
diff --git a/content/browser/child_process_launcher_helper_fuchsia.cc b/content/browser/child_process_launcher_helper_fuchsia.cc
index 8e55b5f..c834ebd 100644
--- a/content/browser/child_process_launcher_helper_fuchsia.cc
+++ b/content/browser/child_process_launcher_helper_fuchsia.cc
@@ -54,6 +54,8 @@
 
 void ChildProcessLauncherHelper::BeforeLaunchOnClientThread() {
   DCHECK_CURRENTLY_ON(client_thread_id_);
+
+  sandbox_policy_.Initialize(delegate_->GetSandboxType());
 }
 
 base::Optional<mojo::NamedPlatformChannel>
@@ -75,7 +77,8 @@
 
   mojo_channel_->PrepareToPassRemoteEndpoint(&options->handles_to_transfer,
                                              command_line());
-  UpdateLaunchOptionsForSandbox(delegate_->GetSandboxType(), options);
+  sandbox_policy_.UpdateLaunchOptionsForSandbox(options);
+
   return true;
 }