[signin] Force light mode in the reauth dialog
To force the light mode on the Reauth confirmation screen, we override the preferred_color_scheme web preference in SigninReauthViewController. However, a web preference overridden via WebContents::SetWebPreferences doesn't survive a recomputation of WebPreferences. This means that the preferred_color_scheme returns back to its default value. The comment to the SetWebPreferences method suggests to put the recomputation logic in ChromeContentBrowserClient. This CL does exactly that. This CL also adds a browser test to verify the behavior and catch possible regressions. Bug: 1153368 Change-Id: I8697e13095ba58d120f6ce61352caa32a982be0d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2565684 Commit-Queue: Alex Ilin <alexilin@chromium.org> Reviewed-by:David Roger <droger@chromium.org> Cr-Commit-Position: refs/heads/master@{#832324}
Showing
Please register or sign in to comment