Commit d389dfbe authored by Wez's avatar Wez Committed by Chromium LUCI CQ

[content] Update comments regarding accepted-languages headers.

Change-Id: I8a9076cc0b392b1efcd411c2f666349af3e0ea2d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2622112
Commit-Queue: Wez <wez@chromium.org>
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Auto-Submit: Wez <wez@chromium.org>
Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842083}
parent 148806fd
......@@ -612,7 +612,10 @@ class CONTENT_EXPORT ContentBrowserClient {
// This is called on the UI and IO threads.
virtual std::string GetApplicationLocale();
// Returns the languages used in the Accept-Languages HTTP header.
// Returns a comma-separate list of language codes, in order of preference.
// The value is used to report the "sec-ch-lang" to sites, if requested.
// The legacy "accept-language" header is not affected by this setting (see
// |ConfigureNetworkContextParams()| below).
// (Not called GetAcceptLanguages so it doesn't clash with win32).
virtual std::string GetAcceptLangs(BrowserContext* context);
......@@ -1501,6 +1504,10 @@ class CONTENT_EXPORT ContentBrowserClient {
// BrowserContext's StoragePartition. StoragePartition will use the
// NetworkService to create a new NetworkContext using these params.
//
// By default the |network_context_params| is populated with |user_agent|
// based on the value returned by GetUserAgent(), and with a fixed legacy
// "accept-language" header value of "en-us,en".
//
// If the CertVerifierService is enabled, the CertVerifierCreationParams will
// be used to create a new CertVerifierService, which will be passed to the
// network service in NetworkContextParams. Otherwise, the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment