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

Issue 1053463002: MacViews: Use native certificate viewer in MacViews browser. (Closed)

Created:
5 years, 8 months ago by Andre
Modified:
5 years, 8 months ago
Reviewers:
Robert Sesek, tapted, msw
CC:
chromium-reviews, mac-views-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@translate
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Use native certificate viewer in MacViews browser. We want to use certificate_viewer_mac's version of ShowCertificateViewer with mac_views_browser, at least for now. SSLCertificateViewerCocoa depends on ConstrainedWindowMac, which depends on SingleWebContentsDialogManagerCocoa, which depends on ConstrainedWindowSheetController. Fix them to no longer depend on TabStripController. Refactor GetSheetParentViewForWebContents to virtual TabDialogs::GetDialogParentView to allow different implementations between Views and Cocoa on Mac. Move CreateNativeWebModalManager to a separate file so that mac_views_browser can exclude it and avoid duplicate definitions. BUG=425229 Committed: https://crrev.com/978c6d1929384d8f39380c4f4efd84f9e4a2417d Cr-Commit-Position: refs/heads/master@{#323633}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Fix tests #

Total comments: 5

Patch Set 4 : Fix for tapted and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -49 lines) Patch
M chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller.mm View 1 2 3 2 chunks +13 lines, -1 line 0 comments Download
A chrome/browser/ui/cocoa/create_native_web_modal_manager_cocoa.mm View 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/single_web_contents_dialog_manager_cocoa.mm View 1 2 3 chunks +6 lines, -17 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_dialogs_cocoa.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_dialogs_cocoa.mm View 1 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.h View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 1 chunk +0 lines, -24 lines 0 comments Download
M chrome/browser/ui/tab_dialogs.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tab_dialogs_views.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tab_dialogs_views.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
Andre
Trent, WDYT? https://codereview.chromium.org/1053463002/diff/40001/chrome/browser/ui/cocoa/single_web_contents_dialog_manager_cocoa.mm File chrome/browser/ui/cocoa/single_web_contents_dialog_manager_cocoa.mm (right): https://codereview.chromium.org/1053463002/diff/40001/chrome/browser/ui/cocoa/single_web_contents_dialog_manager_cocoa.mm#newcode38 chrome/browser/ui/cocoa/single_web_contents_dialog_manager_cocoa.mm:38: : web_contents->GetNativeView(); This is a change when ...
5 years, 8 months ago (2015-04-02 04:04:27 UTC) #2
tapted
looks pretty good - i'd go for it. Just one question really https://codereview.chromium.org/1053463002/diff/40001/chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller.mm File chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller.mm ...
5 years, 8 months ago (2015-04-02 04:35:22 UTC) #3
Andre
Thanks! This is ready for a more thorough review now. https://codereview.chromium.org/1053463002/diff/40001/chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller.mm File chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller.mm (right): https://codereview.chromium.org/1053463002/diff/40001/chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller.mm#newcode33 ...
5 years, 8 months ago (2015-04-02 17:17:32 UTC) #4
Andre
rsesek@ PTAL for cocoa. msw@ PTAL for views.
5 years, 8 months ago (2015-04-02 17:20:18 UTC) #6
msw
c/b/ui/views lgtm
5 years, 8 months ago (2015-04-02 17:35:02 UTC) #7
Robert Sesek
LGTM
5 years, 8 months ago (2015-04-02 19:19:47 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1053463002/60001
5 years, 8 months ago (2015-04-02 20:50:51 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/75246)
5 years, 8 months ago (2015-04-02 21:06:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1053463002/60001
5 years, 8 months ago (2015-04-03 00:54:02 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-03 05:31:14 UTC) #15
commit-bot: I haz the power
5 years, 8 months ago (2015-04-03 20:32:41 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/978c6d1929384d8f39380c4f4efd84f9e4a2417d
Cr-Commit-Position: refs/heads/master@{#323633}

Powered by Google App Engine
This is Rietveld 408576698