Replace param |disposition| with |should_report| on IsFeatureEnabled
Previously |disposition| on IsFeatureEnabled have an awkward type base::Optional<mojom::FeaturePolicyDisposition>*, which has 3 states correspond to FeatureEnabledState: - base::nullopt <= kEnabled - FeaturePolicyDisposition::kReport <= kReportOnly - FeaturePolicyDisposition::kEnforce <= kDisabled This CL simplifies the representation of this piece of information to |should_report|, and removes FeatureEnabledState enum. The mapping of FeatureEnabledState to new logic: kEnabled: enabled=true; should_report=false kReportOnly: enabled = true; should_report=true kDisabled: enabled = false; should_report=true Change-Id: I1fa82fb5e9924b8eed448853b139772e024bd531 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2037326 Commit-Queue: Charlie Hu <chenleihu@google.com> Reviewed-by:Ian Clelland <iclelland@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#741789}
Showing
Please register or sign in to comment