WebApp: Rework filtering of allowed profiles for metrics.

Decide in Factory's GetBrowserContextToUse whether to bypass creation of
WebAppMetrics service for a given profile.

This is a much cleaner and more efficient way to do so,
No behavior change.

Bug: 907353
Change-Id: I925977faca2e5dd917fe16a910bd65110215257a
Reviewed-on: https://chromium-review.googlesource.com/c/1405163
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Commit-Queue: Alexey Baskakov <loyso@chromium.org>
Cr-Commit-Position: refs/heads/master@{#621934}
3 files changed