Add a factory method to create a FakeGCMS with a TestURLLoaderFactory.

This new factory method is meant to replace
BuildFakeGaiaCookieManagerServiceWithOptions in the cases where
create_fake_url_loader_factory_for_cookie_requests is set to true.

Callers of BuildFakeGaiaCookieManagerServiceWithOptions will be migrated
to use this new factory method in a future CL.

This is part of step 1a of the plan to eliminate FakeGCMS entirely:

https: //docs.google.com/document/d/1t0ZtuV7h-znzdItFgBW0aKPscAwWXIBuNZnNlEGgi7g/edit
Change-Id: Ia26dbe429743e30b86130106d3909a3320e4ba2d
Bug: 907782
Reviewed-on: https://chromium-review.googlesource.com/c/1412456
Reviewed-by: David Roger <droger@chromium.org>
Reviewed-by: Colin Blundell <blundell@chromium.org>
Commit-Queue: Lowell Manners <lowell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#623180}
2 files changed