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

Issue 2916753004: Use BookmarkAppConfirmationView on Mac. Delete the NSAlert Mac uses currently. (Closed)

Created:
3 years, 6 months ago by tapted
Modified:
3 years, 6 months ago
Reviewers:
benwells, sky
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, mac-reviews_chromium.org, tfarina, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use BookmarkAppConfirmationView on Mac. Delete the NSAlert Mac uses currently. This dialog can only be shown on Mac by turning on a flag. The NSAlert is ugly and buggy, so just delete it. Remove a bunch of unnecessary plumbing. Renames ShowBookmarkAppBubble to ShowBookmarkAppDialog (since it's not a bubble). Adds a test harness for BookmarkAppHelper integration tests and add an end-to-end test for showing the dialog. Adds BookmarkAppHelperTest.InvokeDialog_create to browser_tests. The dialog can be shown interactively with something like browser_tests --gtest_filter=BrowserDialogTest.Invoke --interactive \ --dialog=BookmarkAppHelperTest.InvokeDialog_create BUG=728153 Review-Url: https://codereview.chromium.org/2916753004 Cr-Commit-Position: refs/heads/master@{#477871} Committed: https://chromium.googlesource.com/chromium/src/+/712c1b8ba3219ffe2408837d7b2f2f1253a55f26

Patch Set 1 #

Patch Set 2 : alrighty #

Total comments: 4

Patch Set 3 : respond to comments #

Patch Set 4 : Remove friend (´;ω;`) #

Total comments: 2

Patch Set 5 : using, OnceCallback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -214 lines) Patch
M chrome/app/generated_resources.grd View 1 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/extensions/bookmark_app_helper.h View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/extensions/bookmark_app_helper.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
A chrome/browser/extensions/bookmark_app_helper_browsertest.cc View 1 2 3 1 chunk +152 lines, -0 lines 0 comments Download
M chrome/browser/extensions/bookmark_app_helper_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_dialogs.h View 1 2 3 4 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 2 chunks +0 lines, -17 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 4 chunks +0 lines, -131 lines 0 comments Download
M chrome/browser/ui/views/extensions/bookmark_app_confirmation_view.h View 1 2 3 4 3 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/extensions/bookmark_app_confirmation_view.cc View 1 2 3 4 5 chunks +29 lines, -21 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 37 (27 generated)
tapted
Hiya Ben, please take a look
3 years, 6 months ago (2017-06-05 00:06:26 UTC) #9
benwells
https://codereview.chromium.org/2916753004/diff/20001/chrome/browser/extensions/bookmark_app_helper_browsertest.cc File chrome/browser/extensions/bookmark_app_helper_browsertest.cc (right): https://codereview.chromium.org/2916753004/diff/20001/chrome/browser/extensions/bookmark_app_helper_browsertest.cc#newcode82 chrome/browser/extensions/bookmark_app_helper_browsertest.cc:82: base::Unretained(this))); Why unretained? https://codereview.chromium.org/2916753004/diff/20001/chrome/browser/extensions/test_bookmark_app_helper.h File chrome/browser/extensions/test_bookmark_app_helper.h (right): https://codereview.chromium.org/2916753004/diff/20001/chrome/browser/extensions/test_bookmark_app_helper.h#newcode13 chrome/browser/extensions/test_bookmark_app_helper.h:13: ...
3 years, 6 months ago (2017-06-06 03:31:50 UTC) #10
tapted
https://codereview.chromium.org/2916753004/diff/20001/chrome/browser/extensions/bookmark_app_helper_browsertest.cc File chrome/browser/extensions/bookmark_app_helper_browsertest.cc (right): https://codereview.chromium.org/2916753004/diff/20001/chrome/browser/extensions/bookmark_app_helper_browsertest.cc#newcode82 chrome/browser/extensions/bookmark_app_helper_browsertest.cc:82: base::Unretained(this))); On 2017/06/06 03:31:50, benwells wrote: > Why unretained? ...
3 years, 6 months ago (2017-06-06 07:44:13 UTC) #13
benwells
lgtm
3 years, 6 months ago (2017-06-07 01:31:39 UTC) #16
tapted
On 2017/06/07 01:31:39, benwells wrote: > lgtm Removed the friend, as discussed. Too easy.
3 years, 6 months ago (2017-06-07 06:55:17 UTC) #19
tapted
+sky for OWNERS in chrome/browser/ui/browser_dialogs.h chrome/browser/ui/browser_window.h chrome/browser/ui/views/frame/browser_view.cc chrome/browser/ui/views/frame/browser_view.h chrome/test/base/test_browser_window.h Thanks!
3 years, 6 months ago (2017-06-07 06:59:03 UTC) #22
sky
LGTM https://codereview.chromium.org/2916753004/diff/60001/chrome/browser/ui/browser_dialogs.h File chrome/browser/ui/browser_dialogs.h (right): https://codereview.chromium.org/2916753004/diff/60001/chrome/browser/ui/browser_dialogs.h#newcode109 chrome/browser/ui/browser_dialogs.h:109: typedef base::Callback<void(bool, const WebApplicationInfo&)> typedef->using and OnceCallback.
3 years, 6 months ago (2017-06-07 16:27:43 UTC) #25
tapted
https://codereview.chromium.org/2916753004/diff/60001/chrome/browser/ui/browser_dialogs.h File chrome/browser/ui/browser_dialogs.h (right): https://codereview.chromium.org/2916753004/diff/60001/chrome/browser/ui/browser_dialogs.h#newcode109 chrome/browser/ui/browser_dialogs.h:109: typedef base::Callback<void(bool, const WebApplicationInfo&)> On 2017/06/07 16:27:43, sky wrote: ...
3 years, 6 months ago (2017-06-08 01:52:31 UTC) #30
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/2916753004/80001
3 years, 6 months ago (2017-06-08 02:34:20 UTC) #34
commit-bot: I haz the power
3 years, 6 months ago (2017-06-08 03:10:23 UTC) #37
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/712c1b8ba3219ffe2408837d7b2f...

Powered by Google App Engine
This is Rietveld 408576698