Adapt the chromium_src overrides to the new locations under the common/
and public/common/ directories in Blink, add BLINK_COMMON_EXPORT to the
Brave-specific functions added to blink::origin_trials:: and fix the
paths in the script/check_chromium_src.py script.
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/e4b14e32105c5a6912f5b1ff736ecbb796e2741b
commit e4b14e32105c5a6912f5b1ff736ecbb796e2741b
Author: Jason Chase <chasej@chromium.org>
Date: Mon Jan 17 16:00:25 2022 +0000
Move static origin_trials functions to blink/common
As in crbug.com/1227440, correctly checking if an origin trial is
enabled needs logic only available in the renderer. This CL is a first
step to make the logic available in the browser.
This CL moves the static functions in origin_trials.h|cc, including:
- Move origin_trials.h into blink/public/common
(and changes to Chromium types from WTF)
- Move generated origin_trials.cc file into blink/common
- Move navigation_origin_trials_features.cc into blink/common, keeping
the unique security owners
- Extract the generated OriginTrialFeature enum into its own header file
- Update all references to the moved files, removing any includes that
are no longer needed
Bug: 1227440