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: //
Change-Id: Ia26dbe429743e30b86130106d3909a3320e4ba2d
Bug: 907782
Reviewed-by: David Roger <>
Reviewed-by: Colin Blundell <>
Commit-Queue: Lowell Manners <>
Cr-Commit-Position: refs/heads/master@{#623180}
2 files changed