Index: chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa.mm |
diff --git a/chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa.mm b/chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa.mm |
index 3ae6eca05e5776f7c44c67284fbd921d3e264070..ff46f9c14060819a315b567f48fdab32a0ed448f 100644 |
--- a/chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa.mm |
+++ b/chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa.mm |
@@ -40,11 +40,11 @@ class SSLClientAuthObserverCocoaBridge : public SSLClientAuthObserver, |
public ConstrainedWindowMacDelegate { |
public: |
SSLClientAuthObserverCocoaBridge( |
- const net::HttpNetworkSession* network_session, |
+ const content::BrowserContext* browser_context, |
net::SSLCertRequestInfo* cert_request_info, |
const chrome::SelectCertificateCallback& callback, |
SSLClientCertificateSelectorCocoa* controller) |
- : SSLClientAuthObserver(network_session, cert_request_info, callback), |
+ : SSLClientAuthObserver(browser_context, cert_request_info, callback), |
controller_(controller) { |
} |
@@ -72,14 +72,13 @@ namespace chrome { |
void ShowSSLClientCertificateSelector( |
content::WebContents* contents, |
- const net::HttpNetworkSession* network_session, |
net::SSLCertRequestInfo* cert_request_info, |
const SelectCertificateCallback& callback) { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
// The dialog manages its own lifetime. |
SSLClientCertificateSelectorCocoa* selector = |
[[SSLClientCertificateSelectorCocoa alloc] |
- initWithNetworkSession:network_session |
+ initWithBrowserContext:contents->GetBrowserContext() |
certRequestInfo:cert_request_info |
callback:callback]; |
[selector displayForWebContents:contents]; |
@@ -89,14 +88,14 @@ void ShowSSLClientCertificateSelector( |
@implementation SSLClientCertificateSelectorCocoa |
-- (id)initWithNetworkSession:(const net::HttpNetworkSession*)networkSession |
+- (id)initWithBrowserContext:(const content::BrowserContext*)browserContext |
certRequestInfo:(net::SSLCertRequestInfo*)certRequestInfo |
callback:(const chrome::SelectCertificateCallback&)callback { |
- DCHECK(networkSession); |
+ DCHECK(browserContext); |
DCHECK(certRequestInfo); |
if ((self = [super init])) { |
observer_.reset(new SSLClientAuthObserverCocoaBridge( |
- networkSession, certRequestInfo, callback, self)); |
+ browserContext, certRequestInfo, callback, self)); |
} |
return self; |
} |