Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Issue 2632123003: Revert of MacViews: Allow the toolkit-views Enterprise Signin Confirmation Dialog to be used (Closed)

Created:
3 years, 11 months ago by pkalinnikov
Modified:
3 years, 11 months ago
Reviewers:
msw, tapted
CC:
chromium-reviews, tfarina, sync-reviews_chromium.org, mac-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of MacViews: Allow the toolkit-views Enterprise Signin Confirmation Dialog to be used (patchset #7 id:140001 of https://codereview.chromium.org/2625813003/ ) Reason for revert: The "ProfileSigninConfirmationDialogTest.InvokeDialog_default" test is failing on "Win10 Tests x64" builder. Original issue's description: > MacViews: Allow the toolkit-views Enterprise Signin Confirmation Dialog to be used > > 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. This uses the TestBrowserDialog framework, which was using > GetAllChildWidgets() to detect a dialog being added. This worked on Mac, > but on Aura the dialog is added as a "transient" child. Update > TestBrowserDialog to use GetAllOwnedWidgets(), which includes transient > children as well as other 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 > Cr-Commit-Position: refs/heads/master@{#443751} > Committed: https://chromium.googlesource.com/chromium/src/+/0dd1562593d3cb4ebe882801d76d747641d7b7f0 TBR=msw@chromium.org,tapted@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=681049 Review-Url: https://codereview.chromium.org/2632123003 Cr-Commit-Position: refs/heads/master@{#443899} Committed: https://chromium.googlesource.com/chromium/src/+/c6f827f406ef2b71339fa34bc82a632519a84e5b

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -224 lines) Patch
M chrome/browser/ui/BUILD.gn View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_dialog_cocoa.h View 1 chunk +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_dialog_cocoa.mm View 3 chunks +22 lines, -17 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_controller.h View 4 chunks +13 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_controller.mm View 6 chunks +25 lines, -11 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_controller_browsertest.mm View 4 chunks +12 lines, -47 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_dialogs_cocoa.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tab_dialogs_cocoa.mm View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_dialogs_views_mac.h View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_dialogs_views_mac.mm View 2 chunks +0 lines, -10 lines 0 comments Download
M chrome/browser/ui/collected_cookies_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/tab_dialogs.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/test/test_browser_dialog.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.h View 3 chunks +6 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc View 8 chunks +9 lines, -15 lines 0 comments Download
D chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views_browsertest.cc View 1 chunk +0 lines, -73 lines 0 comments Download
M chrome/browser/ui/views/tab_dialogs_views.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tab_dialogs_views.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/test/BUILD.gn View 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (3 generated)
pkalinnikov
Created Revert of MacViews: Allow the toolkit-views Enterprise Signin Confirmation Dialog to be used
3 years, 11 months ago (2017-01-16 13:45:13 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2632123003/1
3 years, 11 months ago (2017-01-16 13:45:25 UTC) #3
commit-bot: I haz the power
3 years, 11 months ago (2017-01-16 15:34:33 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/c6f827f406ef2b71339fa34bc82a...

Powered by Google App Engine
This is Rietveld 408576698