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 e9b1fb915e9c6cee8e0c2f7e1784906da32a9183..405f935ff55f40ab5125c075b5bba91fd5782f2f 100644 |
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm |
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm |
@@ -582,9 +582,13 @@ NSString* const kOkEnabledName = @"okEnabled"; |
for (BookmarkFolderInfo* subFolderInfo in subfolders) { |
if ([subFolderInfo newFolder]) { |
BookmarkModel* model = [self bookmarkModel]; |
+ NSString* name = [subFolderInfo folderName]; |
+ if ([name length] == 0) |
+ name = |
+ l10n_util::GetNSStringWithFixup(IDS_BOOKMARK_EDITOR_NEW_FOLDER_NAME); |
const BookmarkNode* newFolder = |
model->AddFolder(parentNode, i, |
- base::SysNSStringToUTF16([subFolderInfo folderName])); |
+ base::SysNSStringToUTF16(name)); |
// Update our dictionary with the actual folder node just created. |
[subFolderInfo setFolderNode:newFolder]; |
[subFolderInfo setNewFolder:NO]; |