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

Issue 2905243003: Cleanup BookmarkBubbleView, remove LocationBarBubbleDelegateView::GetDialogButtons() (Closed)

Created:
3 years, 7 months ago by tapted
Modified:
3 years, 6 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, tfarina, sebsg+autofillwatch_chromium.org, mathp+autofillwatch_chromium.org, rogerm+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup BookmarkBubbleView, remove LocationBarBubbleDelegateView::GetDialogButtons(). We want BookmarkBubbleView to be consistent with other dialogs. E.g. it should use GetDialogButtons(), but LocationBarBubbleDelegateView's override gets in the way, remove it. Most LocationBarBubbleDelegateView will not want it, but don't break them yet. Then, cleanups for BookmarkBubbleView: - Renames GetTitle() to GetBookmarkName() so it's not confused with the dialog title. - Renames close_button_ to save_button_ so it's not confused with the close [x]. - Renames bookmark_details_view_ to bookmark_contents_view_ (there's only one level of detail). Also don't use unique_ptr for a View that's also owned by the View hierarchy. - Removes some FRIEND_TEST_ALL_PREFIXES; use neater techniques. - Removes ScopedAllowIO from the browsertest and reduces boilerplate. BUG=726187 Review-Url: https://codereview.chromium.org/2905243003 Cr-Commit-Position: refs/heads/master@{#475259} Committed: https://chromium.googlesource.com/chromium/src/+/85c36f9e4420de87c3b5cff31d090f158a5252d0

Patch Set 1 #

Patch Set 2 : neater #

Total comments: 10

Patch Set 3 : respond to comments #

Patch Set 4 : rebase on crrev/2904333002 #

Patch Set 5 : Can you find the CL now? #

Total comments: 4

Patch Set 6 : better comments #

Patch Set 7 : Rebase for r475249 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -99 lines) Patch
M chrome/browser/ui/views/autofill/save_card_bubble_views.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/save_card_bubble_views.cc View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h View 1 2 3 5 chunks +14 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc View 1 2 3 4 5 6 18 chunks +34 lines, -30 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view_browsertest.cc View 1 2 3 4 5 2 chunks +26 lines, -34 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view_unittest.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view.cc View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 56 (47 generated)
tapted
Hi Peter, please take a look
3 years, 7 months ago (2017-05-26 10:02:15 UTC) #23
Peter Kasting
Is it possible to split the bookmark bubble view function reordering changes into a precursor ...
3 years, 7 months ago (2017-05-26 16:29:18 UTC) #26
tapted
On 2017/05/26 16:29:18, Peter Kasting wrote: > Is it possible to split the bookmark bubble ...
3 years, 7 months ago (2017-05-27 00:18:49 UTC) #30
Peter Kasting
LGTM. The things that look like ownership model changes in bookmark_bubble_view.cc stand out -- I ...
3 years, 7 months ago (2017-05-27 00:28:45 UTC) #36
tapted
https://codereview.chromium.org/2905243003/diff/100001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view_browsertest.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view_browsertest.cc (right): https://codereview.chromium.org/2905243003/diff/100001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view_browsertest.cc#newcode43 chrome/browser/ui/views/bookmarks/bookmark_bubble_view_browsertest.cc:43: // on the UI thread, which would need ScopedAllow-IO). ...
3 years, 7 months ago (2017-05-27 01:09:39 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2905243003/200001
3 years, 6 months ago (2017-05-28 06:45:47 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/220547) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-05-28 06:47:58 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2905243003/220001
3 years, 6 months ago (2017-05-28 07:55:57 UTC) #53
commit-bot: I haz the power
3 years, 6 months ago (2017-05-28 11:08:40 UTC) #56
Message was sent while issue was closed.
Committed patchset #7 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/85c36f9e4420de87c3b5cff31d09...

Powered by Google App Engine
This is Rietveld 408576698