[heap profiler] Introduce in-process mode for the service.

The mode can be controlled with --memlog-in-process flag or via the
Finch experiment.
In-process mode does also imply samples collected on the client side
(non-streaming mode).

BUG=923459

Change-Id: Ic1866231ac2ad4cbdf03e8664c2871ab22e12931
Reviewed-on: https://chromium-review.googlesource.com/c/1435757
Commit-Queue: Alexei Filippov <[email protected]>
Reviewed-by: Erik Chen <[email protected]>
Cr-Commit-Position: refs/heads/master@{#628569}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index 1aceb86..dd4b1d92 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -1880,6 +1880,7 @@
     "//components/security_state/content",
     "//components/security_state/core",
     "//components/send_tab_to_self",
+    "//components/services/heap_profiling",
     "//components/services/patch/public/interfaces",
     "//components/services/unzip/public/interfaces",
     "//components/sessions",