Index: chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa_browsertest.mm |
diff --git a/chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa_browsertest.mm b/chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa_browsertest.mm |
index 37757d62e14c59ec132386505b41911e78e93452..a0c71106e6692e7941e9f90ba3cd50fc2e7e4115 100644 |
--- a/chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa_browsertest.mm |
+++ b/chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa_browsertest.mm |
@@ -50,7 +50,7 @@ IN_PROC_BROWSER_TEST_F(SSLClientCertificateSelectorCocoaTest, DISABLED_Basic) { |
int count = 0; |
SSLClientCertificateSelectorCocoa* selector = |
[[SSLClientCertificateSelectorCocoa alloc] |
- initWithNetworkSession:auth_requestor_->http_network_session_ |
+ initWithBrowserContext:web_contents->GetBrowserContext() |
certRequestInfo:auth_requestor_->cert_request_info_.get() |
callback:base::Bind(&OnCertificateSelected, |
&cert, |
@@ -72,13 +72,13 @@ IN_PROC_BROWSER_TEST_F(SSLClientCertificateSelectorCocoaTest, DISABLED_Basic) { |
// Test that switching to another tab correctly hides the sheet. |
IN_PROC_BROWSER_TEST_F(SSLClientCertificateSelectorCocoaTest, HideShow) { |
+ content::WebContents* web_contents = |
+ browser()->tab_strip_model()->GetActiveWebContents(); |
SSLClientCertificateSelectorCocoa* selector = |
[[SSLClientCertificateSelectorCocoa alloc] |
- initWithNetworkSession:auth_requestor_->http_network_session_ |
+ initWithBrowserContext:web_contents->GetBrowserContext() |
certRequestInfo:auth_requestor_->cert_request_info_.get() |
callback:chrome::SelectCertificateCallback()]; |
- content::WebContents* web_contents = |
- browser()->tab_strip_model()->GetActiveWebContents(); |
[selector displayForWebContents:web_contents]; |
content::RunAllPendingInMessageLoop(); |