Generate snippets request JSON with base::Value.
Doing it as it did with string substitution is brittle, since it forced assumptions about the JSON being generated out of the BuildRequest() function and into its callers and GetHostRestricts(). When we're generating different types of requests, it will be easier to understand what e.g. "obfuscated_gaia_id" is if it's always the ID, and never a partial string of JSON. Expose the BuildRequest() function to tests and test it. BUG=621090 Review-Url: https://codereview.chromium.org/2077973002 Cr-Commit-Position: refs/heads/master@{#400656}
Showing
Please register or sign in to comment