Update comment for GetDisabledSettings() in apply_dark_mode.cc.
The issue mentioned in the comment is regarding the unexpected inversion of images when |mode| in DarkModeSettings is set to kOff. This issue is no longer reproducible in the latest code. Currently the code is structured in such a way that |image_filter_| is always nullptr when the mode is set to kOff. Unit tests are added to check this behaviour in dark_mode_filter_test.cc. The default value for |image_policy| in DarkModeSettings is currently kFilterAll. Even though this does not break any functionality, its better to have the default value to be kFilterNone which is more consistent with the other default values in the structure. Change-Id: Ia37dbf24fff99cf3ab3cc6930a441a8b2800e44f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1874993Reviewed-by:Stephen Chenney <schenney@chromium.org> Reviewed-by:
Aran Gilman <gilmanmh@google.com> Reviewed-by:
Prashant Nevase <prashant.n@samsung.com> Commit-Queue: Varun Chowdhary Paturi <v.paturi@samsung.com> Cr-Commit-Position: refs/heads/master@{#708902}
Showing
Please register or sign in to comment