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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm

Issue 7276035: Wrong name when creating new folder in bookmark editor (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm
index 31f4ecb658c97480797472d3a539ee3f71b0e51a..6e59a90ff28711ca1f3bc134a3d5b1a5248cbb97 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm
@@ -239,6 +239,8 @@ class BookmarkEditorBaseControllerBridge : public BookmarkModelObserver {
}
- (IBAction)ok:(id)sender {
+ NSWindow* window = [self window];
+ [window makeFirstResponder:window];
// At least one of these two functions should be provided by derived classes.
BOOL hasWillCommit = [self respondsToSelector:@selector(willCommit)];
BOOL hasDidCommit = [self respondsToSelector:@selector(didCommit)];
@@ -257,7 +259,7 @@ class BookmarkEditorBaseControllerBridge : public BookmarkModelObserver {
shouldContinue = [hasDidContinue boolValue];
}
if (shouldContinue)
- [NSApp endSheet:[self window]];
+ [NSApp endSheet:window];
}
- (IBAction)cancel:(id)sender {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698