Revert "Replace param |disposition| with |should_report| on IsFeatureEnabled"
This reverts commit ccf8b883. Reason for revert: To revert https://chromium-review.googlesource.com/c/chromium/src/+/2028666 https://chromium-review.googlesource.com/c/chromium/src/+/2028666 seems to cause LinuxCFI tests failures. LinuxCFI tests start failing at https://ci.chromium.org/p/chromium/builders/ci/Linux%20CFI/16433 16433 contains https://chromium-review.googlesource.com/c/chromium/src/+/2028666 Original change's description: > 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} TBR=dcheng@chromium.org,iclelland@chromium.org,chenleihu@google.com Change-Id: Id6531935bbc777662fc3af2af65612495cb5a803 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2059555Reviewed-by:Takashi Sakamoto <tasak@google.com> Commit-Queue: Takashi Sakamoto <tasak@google.com> Cr-Commit-Position: refs/heads/master@{#741872}
Showing
Please register or sign in to comment