Igalia / wolvic-chromium

The official GitHub mirror of the Chromium source
https://chromium.googlesource.com/chromium/src/
BSD 3-Clause "New" or "Revised" License
11 stars 6 forks source link

Refactor ChromeContentBrowserClient::GetUserAgentBasedOnPolicy to avoid duplication #4

Open jdapena opened 1 year ago

jdapena commented 1 year ago

As told in https://github.com/Igalia/wolvic-chromium/pull/2#discussion_r1129122549 it would be good to refactor the method ChromeContentBrowserClient::GetUserAgentBasedOnPolicy() from upstream, moving most of its implementation to //components/embedded_support so it can be reused by other embedders as Wolvic Chromium backend.

Then, once we are based on a version of Chromium using that change, update accordingly to use the refactored version.