|
|
DescriptionUsing native sheet to display modal dialogs for sign in
BUG=677012
Review-Url: https://codereview.chromium.org/2617583006
Cr-Commit-Position: refs/heads/master@{#443241}
Committed: https://chromium.googlesource.com/chromium/src/+/972a4d1ae26576f2a0cee1066a6ded6616538641
Patch Set 1 #Patch Set 2 : Little fix #
Total comments: 2
Patch Set 3 : Tab/Window modal parameter #
Total comments: 2
Patch Set 4 : Using ui::ModalType #
Total comments: 2
Patch Set 5 : Private SigninViewControllerDelegateMac constructor #
Total comments: 2
Patch Set 6 : DeleteThis -> CleanupAndDeleteThis #Patch Set 7 : Rebase #
Messages
Total messages: 47 (34 generated)
Patchset #2 (id:20001) has been deleted
The CQ bit was checked by jlebel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by jlebel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Hello Mihai, Can you review my patch? Thanks,
jlebel@chromium.org changed reviewers: + msarda@chromium.org
Hello msarda, Can you review my patch? Thanks,
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2617583006/diff/40001/chrome/browser/ui/cocoa... File chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.mm (right): https://codereview.chromium.org/2617583006/diff/40001/chrome/browser/ui/cocoa... chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.mm:145: ResetSigninViewControllerDelegate(); I think it would be better to use a DeleteSoon here to avoid crashes if the code calling PerformClose uses the object after this is called. See: https://cs.chromium.org/chromium/src/base/sequenced_task_runner.h?rcl=0&l=123 and https://cs.chromium.org/chromium/src/ash/common/system/tray/system_tray_bubbl...
Patchset #3 (id:60001) has been deleted
Patchset #3 (id:80001) has been deleted
Patchset #3 (id:100001) has been deleted
https://codereview.chromium.org/2617583006/diff/40001/chrome/browser/ui/cocoa... File chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.mm (right): https://codereview.chromium.org/2617583006/diff/40001/chrome/browser/ui/cocoa... chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.mm:145: ResetSigninViewControllerDelegate(); On 2017/01/10 14:16:13, msarda wrote: > I think it would be better to use a DeleteSoon here to avoid crashes if the code > calling PerformClose uses the object after this is called. > > See: > https://cs.chromium.org/chromium/src/base/sequenced_task_runner.h?rcl=0&l=123 > and > https://cs.chromium.org/chromium/src/ash/common/system/tray/system_tray_bubbl... As we talked offline, this would require to move the destructor method from private to public. Plus it is better to be more restrictive by adding a comment saying that as soon as PerformClose() is called, the current instance should be considered as destroyed. I've added some comments in signin_view_controller_delegate.h.
LGTM with a comment nit. https://codereview.chromium.org/2617583006/diff/120001/chrome/browser/ui/sign... File chrome/browser/ui/signin_view_controller_delegate.h (right): https://codereview.chromium.org/2617583006/diff/120001/chrome/browser/ui/sign... chrome/browser/ui/signin_view_controller_delegate.h:51: void CloseModalSignin(); There is a typo in this comment: "the instance should be considered has being destroyed." I would change this comment and the ones below as the following: "Closes the sign-in dialog. Note that this method may destroy this object, so the caller should no longer use this object after calling this method."
Patchset #4 (id:140001) has been deleted
Thanks https://codereview.chromium.org/2617583006/diff/120001/chrome/browser/ui/sign... File chrome/browser/ui/signin_view_controller_delegate.h (right): https://codereview.chromium.org/2617583006/diff/120001/chrome/browser/ui/sign... chrome/browser/ui/signin_view_controller_delegate.h:51: void CloseModalSignin(); On 2017/01/10 15:58:43, msarda wrote: > There is a typo in this comment: "the instance should be considered has being > destroyed." > > I would change this comment and the ones below as the following: > "Closes the sign-in dialog. Note that this method may destroy this object, > so the caller should no longer use this object after calling this method." Done.
lgtm https://codereview.chromium.org/2617583006/diff/160001/chrome/browser/ui/coco... File chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h (right): https://codereview.chromium.org/2617583006/diff/160001/chrome/browser/ui/coco... chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h:47: ui::ModalType dialog_modal_type, For consistency with the views implementation, please make the constructor a private method and make SigninViewControllerDelegate a friend - see https://codereview.chromium.org/2619963003/diff/40001/chrome/browser/ui/views...
Thanks https://codereview.chromium.org/2617583006/diff/160001/chrome/browser/ui/coco... File chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h (right): https://codereview.chromium.org/2617583006/diff/160001/chrome/browser/ui/coco... chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h:47: ui::ModalType dialog_modal_type, On 2017/01/11 14:29:21, msarda wrote: > For consistency with the views implementation, please make the constructor a > private method and make SigninViewControllerDelegate a friend - see > https://codereview.chromium.org/2619963003/diff/40001/chrome/browser/ui/views... Done.
jlebel@chromium.org changed reviewers: + pkasting@chromium.org
Hello Peter, Can you review my patch? That's the macOS version of crrev.com/2619963003 Thanks
LGTM https://codereview.chromium.org/2617583006/diff/180001/chrome/browser/ui/coco... File chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h (right): https://codereview.chromium.org/2617583006/diff/180001/chrome/browser/ui/coco... chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h:81: void DeleteThis(); Nit: I wonder if this should have a different name/description since it does more cleanup than just deleting the object.
Thanks https://codereview.chromium.org/2617583006/diff/180001/chrome/browser/ui/coco... File chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h (right): https://codereview.chromium.org/2617583006/diff/180001/chrome/browser/ui/coco... chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h:81: void DeleteThis(); On 2017/01/11 19:38:29, Peter Kasting wrote: > Nit: I wonder if this should have a different name/description since it does > more cleanup than just deleting the object. Done.
The CQ bit was checked by jlebel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
The CQ bit was checked by jlebel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
The CQ bit was checked by jlebel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
Patchset #7 (id:220001) has been deleted
The CQ bit was checked by jlebel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by jlebel@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from msarda@chromium.org, pkasting@chromium.org Link to the patchset: https://codereview.chromium.org/2617583006/#ps240001 (title: "Rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 240001, "attempt_start_ts": 1484235950947000, "parent_rev": "b103d6c66bbd7bebfe22affab2ea4930685a55bc", "commit_rev": "972a4d1ae26576f2a0cee1066a6ded6616538641"}
Message was sent while issue was closed.
Description was changed from ========== Using native sheet to display modal dialogs for sign in BUG=677012 ========== to ========== Using native sheet to display modal dialogs for sign in BUG=677012 Review-Url: https://codereview.chromium.org/2617583006 Cr-Commit-Position: refs/heads/master@{#443241} Committed: https://chromium.googlesource.com/chromium/src/+/972a4d1ae26576f2a0cee1066a6d... ==========
Message was sent while issue was closed.
Committed patchset #7 (id:240001) as https://chromium.googlesource.com/chromium/src/+/972a4d1ae26576f2a0cee1066a6d... |