Refactor client hints preferences code.
This separates out the code for parsing accept-ch and accept-cl-lifetime header. This makes it easier to parse http-equiv accept-cl-lifetime header which will be added in the next CL. Previously, when only accept-ch header was present, it was handled using a different code path then when both accept-ch and accept-cl-lifetime headers are present. This CL changes it to handle the two headers separately. That also makes it possible to unify the two code paths. Change-Id: I1013419a55360249718855677678356f8446ec11 Bug: 852484 Reviewed-on: https://chromium-review.googlesource.com/1125083 Commit-Queue: Tarun Bansal <tbansal@chromium.org> Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Cr-Commit-Position: refs/heads/master@{#572495}
Showing
Please register or sign in to comment