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.
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.