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

Unified Diff: content/browser/ssl/ssl_client_auth_handler.cc

Issue 10501004: Refactor the guts of ResourceDispatcherHostImpl into a new class named (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/ssl/ssl_client_auth_handler.cc
===================================================================
--- content/browser/ssl/ssl_client_auth_handler.cc (revision 141889)
+++ content/browser/ssl/ssl_client_auth_handler.cc (working copy)
@@ -5,6 +5,7 @@
#include "content/browser/ssl/ssl_client_auth_handler.h"
#include "base/bind.h"
+#include "content/browser/renderer_host/resource_dispatcher_host_impl.h"
#include "content/browser/renderer_host/resource_request_info_impl.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
@@ -14,6 +15,7 @@
#include "net/url_request/url_request_context.h"
using content::BrowserThread;
+using content::ResourceDispatcherHostImpl;
using content::ResourceRequestInfo;
using content::ResourceRequestInfoImpl;
@@ -78,11 +80,8 @@
if (request_) {
request_->ContinueWithCertificate(cert);
- ResourceRequestInfoImpl* info =
- ResourceRequestInfoImpl::ForRequest(request_);
- if (info)
- info->set_ssl_client_auth_handler(NULL);
-
+ ResourceDispatcherHostImpl::Get()->
+ ClearSSLClientAuthHandlerForRequest(request_);
request_ = NULL;
}
}

Powered by Google App Engine
This is Rietveld 408576698