Index: chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc |
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc b/chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc |
index 8ec3a59181f01b82d44471fa31143d316de24a93..cf481ff38b5149849598392ea35694b558d15850 100644 |
--- a/chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc |
+++ b/chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc |
@@ -69,7 +69,8 @@ class BookmarkEditorViewTest : public TestingBrowserProcessTest { |
} |
void SetURLText(const std::wstring& text) { |
- editor_->url_tf_.SetText(text); |
+ if (editor_->details_.type != BookmarkEditor::EditDetails::NEW_FOLDER) |
+ editor_->url_tf_->SetText(text); |
} |
void ApplyEdits(BookmarkEditorView::EditorNode* node) { |
@@ -82,7 +83,9 @@ class BookmarkEditorViewTest : public TestingBrowserProcessTest { |
} |
bool URLTFHasParent() { |
- return editor_->url_tf_.parent(); |
+ if (editor_->details_.type == BookmarkEditor::EditDetails::NEW_FOLDER) |
+ return false; |
+ return editor_->url_tf_->parent(); |
} |
MessageLoopForUI message_loop_; |