Commit c4cc54f0 authored by Sidney San Martín's avatar Sidney San Martín Committed by Commit Bot

Remove the close button from the "Edit Bookmark" dialog.

Bug: 823325
Change-Id: I8c8d9d866112a7fd7ed0ab1304bea4b8ad355ee1
Reviewed-on: https://chromium-review.googlesource.com/974784Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Sidney San Martín <sdy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#545555}
parent cb54a64f
...@@ -114,6 +114,10 @@ bool BookmarkEditorView::CanResize() const { ...@@ -114,6 +114,10 @@ bool BookmarkEditorView::CanResize() const {
return true; return true;
} }
bool BookmarkEditorView::ShouldShowCloseButton() const {
return false;
}
base::string16 BookmarkEditorView::GetWindowTitle() const { base::string16 BookmarkEditorView::GetWindowTitle() const {
return l10n_util::GetStringUTF16(details_.GetWindowTitleId()); return l10n_util::GetStringUTF16(details_.GetWindowTitleId());
} }
......
...@@ -85,6 +85,7 @@ class BookmarkEditorView : public BookmarkEditor, ...@@ -85,6 +85,7 @@ class BookmarkEditorView : public BookmarkEditor,
views::View* CreateExtraView() override; views::View* CreateExtraView() override;
ui::ModalType GetModalType() const override; ui::ModalType GetModalType() const override;
bool CanResize() const override; bool CanResize() const override;
bool ShouldShowCloseButton() const override;
base::string16 GetWindowTitle() const override; base::string16 GetWindowTitle() const override;
bool Accept() override; bool Accept() override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment