Chromium Code Reviews
Description[reland] MacViews: Allow the toolkit-views Enterprise Signin Confirmation Dialog to be used
Previously reviewed in https://codereview.chromium.org/2625813003.
Reverted due to Win10 failures http://crbug.com/683808. Fix in r447216.
The toolkit-views dialog will be used when --secondary-ui-md is enabled.
(With that flag) The dialog also becomes window-modal on Mac, rather
than tab-modal. This is consistent with other platforms. That's the easy
bit -- ProfileSigninConfirmationDialogViews::ShowDialog() "Just Works".
Adds a browser_test for showing the views dialog - it had no prior
coverage. Uses the fix in r447216 to detect these "transient" child
windows.
Also, there was a memory leak.
OneClickSigninSyncStarter::OnRegisteredForPolicy() allocated a
SigninDialogDelegate with `new` which was never released. Cocoa tests in
profile_signin_confirmation_view_controller_browsertest.mm didn't pick
this up because the tests use the test harness as the delegate (passing
`this`). The right fix is to pass a std::unique_ptr - do that.
BUG=681049
Review-Url: https://codereview.chromium.org/2625813003
Review-Url: https://codereview.chromium.org/2667773003
Cr-Commit-Position: refs/heads/master@{#449485}
Committed: https://chromium.googlesource.com/chromium/src/+/3d35b33c364f4a5b8872b96b73dfa72f6ec64921
Patch Set 1 #Patch Set 2 : missing includes after rebase #Patch Set 3 : rebase #
Total comments: 2
Patch Set 4 : clearer comment #Messages
Total messages: 23 (18 generated)
|