summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa
diff options
context:
space:
mode:
authorsnej@chromium.org <snej@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 00:17:18 +0000
committersnej@chromium.org <snej@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 00:17:18 +0000
commit3e0cabcbd7ca90c276244c576d3f3abb0a1ef2fb (patch)
tree1cc56e9767a2cb6c08eecf542d0a9191a781f2dd /chrome/browser/cocoa
parentc01e3e3998b597e95617d8721593841c0ff5be3d (diff)
downloadchromium_src-3e0cabcbd7ca90c276244c576d3f3abb0a1ef2fb.zip
chromium_src-3e0cabcbd7ca90c276244c576d3f3abb0a1ef2fb.tar.gz
chromium_src-3e0cabcbd7ca90c276244c576d3f3abb0a1ef2fb.tar.bz2
Fix broken cert-info sheets on Mac.
BUG=34811 TEST=none Review URL: http://codereview.chromium.org/661034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39955 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r--chrome/browser/cocoa/page_info_window_mac.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/page_info_window_mac.mm b/chrome/browser/cocoa/page_info_window_mac.mm
index 73074ea..c6e9c10 100644
--- a/chrome/browser/cocoa/page_info_window_mac.mm
+++ b/chrome/browser/cocoa/page_info_window_mac.mm
@@ -83,14 +83,14 @@ void PageInfoWindowMac::ShowCertDialog(int) {
for (size_t i = 0; i < ca_certs.size(); ++i)
CFArrayAppendValue(certificates, ca_certs[i]);
- [[SFCertificatePanel sharedCertificatePanel]
+ [[[SFCertificatePanel alloc] init]
beginSheetForWindow:[controller_ window]
modalDelegate:nil
didEndSelector:NULL
contextInfo:NULL
certificates:reinterpret_cast<NSArray*>(certificates.get())
- showGroup:YES
- ];
+ showGroup:YES];
+ // The SFCertificatePanel releases itself when the sheet is dismissed.
}
void PageInfoWindowMac::LayoutSections() {