commit | a11068c7dc9dd1bae0049bde142aba09fcc5cd0a | [log] [tgz] |
---|---|---|
author | Michael Crouse <mcrouse@chromium.org> | Tue Mar 26 16:43:19 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Mar 26 16:43:19 2019 |
tree | 00b0c9e8493c529376d7eb224ca563fe423a851d | |
parent | f2459ef9920741bf547e3cad279cd16c6490eec9 [diff] |
[Previews] Handling the response from remote Optimization Guide Service. HintsFetcher handles the response from the remote Optimization Guide Service and deserializes the response content into GetHintsResponse. UMA histogram logs are registered for the HTTP response code and network error codes. Previews Optimization Guide is notified via callback that the hints fetch was successful and the GetHintsResponse is returned. Previews Hints is created and handles parsing the GetHintsResponse object into a format, currently ComponentUpdateData, that the HintCacheStore can store the fetched hints in. Unit tests for HintFetcher, PreviewsOptimizationGuide, PreviewsHints have been updated to test various response cases. Bug: 932707 Change-Id: I1d004b89efdb30e2ba1443703c635b238ee37fc9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1522328 Commit-Queue: Michael Crouse <mcrouse@chromium.org> Auto-Submit: Michael Crouse <mcrouse@chromium.org> Reviewed-by: Tarun Bansal <tbansal@chromium.org> Cr-Commit-Position: refs/heads/master@{#644367}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .