Refactor runtime_features.cc
This CL breaks down SetRuntimeFeaturesDefaultsAndUpdateFromArgs() into different parts and functions to mainly address several feature addition mistakes (setting some individual feature flags at the end of the function) and to make it easier to add new features. This change also allows to enable certain origin trial features after disabling all of them with "disable-origin-trial-controlled-blink-features" switch. The current flow of the function is as follows: - Enable/Disable all experimental features - Enable/Disable explicitly stated platform related features - Enable/Disable individual features - Enable/Disable all origin trial features - Enable features in "enable-blink-features" switch - Disable features in "disable-blink-features" switch - (Set some individual features) This is the flow of the function for the CL: - Enable/Disable all experimental features - Enable/Disable explicitly stated platform related features - Enable/Disable all origin trial features (*) - Enable/Disable individual features (*) - Enable features in "enable-blink-features" switch - Disable features in "disable-blink-features" switch Change-Id: If09e71fae7189e0925bcb614c801b1df9d0187ef Bug: 832393 Reviewed-on: https://chromium-review.googlesource.com/c/1437318Reviewed-by:Ian Clelland <iclelland@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Commit-Queue: Yashar Dabiran <yashard@google.com> Cr-Commit-Position: refs/heads/master@{#629173}
Showing
Please register or sign in to comment