[Offline Pages] Adds InstanceID token support.
The prefetch service cannot depend on InstanceIDProfileService directly,
because the GCMProfileService depends on it. Therefore, we implement a proxy
that can summon an InstanceIDProfileService on demand and return a
token. Because tokens are short lived in the prefetch system we don't
need any further APIs from InstanceID.
BUG=701939
Change-Id: I8f4c7b8d08edb155b8e53ee39adaeaa8d120711b
Reviewed-on: https://chromium-review.googlesource.com/522143
Commit-Queue: Justin DeWitt <[email protected]>
Reviewed-by: Jian Li <[email protected]>
Cr-Commit-Position: refs/heads/master@{#477956}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index 58cab9d..4224c4d 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -2196,6 +2196,8 @@
"offline_pages/background_loader_offliner.h",
"offline_pages/prefetch/offline_metrics_collector_impl.cc",
"offline_pages/prefetch/offline_metrics_collector_impl.h",
+ "offline_pages/prefetch/prefetch_instance_id_proxy.cc",
+ "offline_pages/prefetch/prefetch_instance_id_proxy.h",
"offline_pages/prefetch/prefetch_service_factory.cc",
"offline_pages/prefetch/prefetch_service_factory.h",
]