| Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm
|
| index c2e0a4fd52fe149e7b579e7e1cf728ec81f72cca..7be4bd6af27924163f8588968cbc08420513e5bf 100644
|
| --- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm
|
| @@ -150,6 +150,11 @@ NSString* const kDoneTouchBarId = @"DONE";
|
| // We caught a close so we don't need to watch for the parent closing.
|
| bookmarkObserver_.reset();
|
| [self notifyBubbleClosed];
|
| +
|
| + // Force the field editor to resign the first responder so that it'll
|
| + // be removed from the view hierarchy and its delegate be set to nil.
|
| + [[self window] endEditingFor:nameTextField_];
|
| +
|
| [super windowWillClose:notification];
|
| }
|
|
|
| @@ -267,7 +272,7 @@ NSString* const kDoneTouchBarId = @"DONE";
|
| if (!textFieldEditor_)
|
| textFieldEditor_.reset([[DialogTextFieldEditor alloc] init]);
|
|
|
| - return textFieldEditor_.autorelease();
|
| + return textFieldEditor_.get();
|
| }
|
|
|
| // Shows the bookmark editor sheet for more advanced editing.
|
|
|