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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bubble_view_browsertest.cc

Issue 2908963002: Use buttons from DialogClientView in BookmakBubbleView. (Closed)
Patch Set: AddPaddingRow Created 3 years, 7 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
Index: chrome/browser/ui/views/bookmarks/bookmark_bubble_view_browsertest.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view_browsertest.cc b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view_browsertest.cc
index bbd98c48122b5f5adb1800f2cba128038da5653b..2de79b0432742c60c23d4e156bd763e4a9ebda33 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view_browsertest.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view_browsertest.cc
@@ -17,6 +17,7 @@
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_utils.h"
#include "components/bookmarks/test/bookmark_test_helpers.h"
+#include "ui/views/window/dialog_client_view.h"
namespace {
@@ -68,8 +69,11 @@ class BookmarkBubbleViewBrowserTest : public DialogBrowserTest {
nullptr, nullptr, nullptr, profile_.get(), GURL(kTestBookmarkURL),
true);
if (name == "ios_promotion") {
- BookmarkBubbleView::bookmark_bubble()->HandleButtonPressed(
- BookmarkBubbleView::bookmark_bubble()->save_button_);
+ BookmarkBubbleView::bookmark_bubble()
+ ->GetWidget()
+ ->client_view()
+ ->AsDialogClientView()
+ ->AcceptWindow();
}
}

Powered by Google App Engine
This is Rietveld 408576698