Index: content/browser/renderer_host/buffered_resource_handler.cc |
diff --git a/content/browser/renderer_host/buffered_resource_handler.cc b/content/browser/renderer_host/buffered_resource_handler.cc |
index f6d205b78ee299d422ca9e7fa30b028627af8c02..9793171f8532c3017a59ee670ef9ae610d04bcbc 100644 |
--- a/content/browser/renderer_host/buffered_resource_handler.cc |
+++ b/content/browser/renderer_host/buffered_resource_handler.cc |
@@ -15,7 +15,7 @@ |
#include "content/browser/plugin_service_impl.h" |
#include "content/browser/renderer_host/resource_dispatcher_host_impl.h" |
#include "content/browser/renderer_host/resource_request_info_impl.h" |
-#include "content/browser/renderer_host/x509_user_cert_resource_handler.h" |
+#include "content/browser/renderer_host/certificate_resource_handler.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/content_browser_client.h" |
#include "content/public/browser/download_save_info.h" |
@@ -303,12 +303,12 @@ bool BufferedResourceHandler::SelectNextHandler(bool* defer) { |
ResourceRequestInfoImpl* info = ResourceRequestInfoImpl::ForRequest(request_); |
const std::string& mime_type = response_->head.mime_type; |
- if (mime_type == "application/x-x509-user-cert") { |
- // Install X509 handler. |
+ if (net::IsSupportedCertificateMimeType(mime_type)) { |
+ // Install certificate file. |
scoped_ptr<ResourceHandler> handler( |
- new X509UserCertResourceHandler(request_, |
- info->GetChildID(), |
- info->GetRouteID())); |
+ new CertificateResourceHandler(request_, |
+ info->GetChildID(), |
+ info->GetRouteID())); |
return UseAlternateNextHandler(handler.Pass()); |
} |