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

Issue 65043015: [mac] Implement a windowed extension install/permissions prompt. (Closed)

Created:
7 years, 1 month ago by tapted
Modified:
7 years ago
Reviewers:
Robert Sesek, Nico
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Visibility:
Public.

Description

[mac] Implement a windowed extension install/permissions prompt. This allows extension install dialogs, and permissions upgrade prompts, to be shown on mac without requiring a parent WebContents to attach a sheet to. Currently, they hit NOTIMPLEMENTED(). The window is a titled NSPanel, centred on screen using [NSWindow center]. The implementation mostly uses the existing ExtensionInstallViewController, but puts it in a new, windowed-version of ExtensionInstallDialogController. Adds a test: WindowedInstallDialogControllerBrowserTest.ShowInstallDialog that mimics the way extension install and upgrade prompts are invoked via the app launcher. Screenshot at http://crbug.com/325030#c2 BUG=325030, 229094, 271809, 269151 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238542

Patch Set 1 #

Patch Set 2 : refine refine refine #

Patch Set 3 : cleanups #

Patch Set 4 : Swishy windows #

Patch Set 5 : include -> import and other nits #

Total comments: 6

Patch Set 6 : rebase - switching WCs #

Patch Set 7 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -57 lines) Patch
M base/mac/sdk_forward_declarations.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 2 chunks +1 line, -20 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 3 chunks +1 line, -10 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller.mm View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_prompt_test_utils.h View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_prompt_test_utils.mm View 1 2 chunks +9 lines, -3 lines 0 comments Download
A chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.h View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.mm View 1 2 3 4 5 6 1 chunk +117 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller_browsertest.mm View 1 2 3 1 chunk +67 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.mm View 1 2 3 4 1 chunk +1 line, -20 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tapted
HI Robert, could you please take a look for a general Cocoa review?
7 years ago (2013-12-03 04:56:40 UTC) #1
Robert Sesek
LGTM https://codereview.chromium.org/65043015/diff/170001/chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.h File chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.h (right): https://codereview.chromium.org/65043015/diff/170001/chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.h#newcode30 chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.h:30: // Invoked by the -[NSwindow windowWillClose:] notification after ...
7 years ago (2013-12-03 14:47:52 UTC) #2
tapted
+thakis for OWNERS in base/mac/sdk_forward_declarations.h - PTAL https://codereview.chromium.org/65043015/diff/170001/chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.h File chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.h (right): https://codereview.chromium.org/65043015/diff/170001/chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.h#newcode30 chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.h:30: // Invoked ...
7 years ago (2013-12-03 23:11:46 UTC) #3
Nico
base/ lgtm
7 years ago (2013-12-03 23:13:47 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/65043015/210001
7 years ago (2013-12-04 00:13:18 UTC) #5
commit-bot: I haz the power
7 years ago (2013-12-04 03:22:53 UTC) #6
Message was sent while issue was closed.
Change committed as 238542

Powered by Google App Engine
This is Rietveld 408576698