Index: net/cert/nss_profile_filter_chromeos.cc |
diff --git a/net/cert/nss_profile_filter_chromeos.cc b/net/cert/nss_profile_filter_chromeos.cc |
index 48718174e8b37a4f0626c95fce7340034e795bd5..906780fbfa178ed482188e2f8bca52cb12097758 100644 |
--- a/net/cert/nss_profile_filter_chromeos.cc |
+++ b/net/cert/nss_profile_filter_chromeos.cc |
@@ -4,9 +4,8 @@ |
#include "net/cert/nss_profile_filter_chromeos.h" |
-#include "base/bind.h" |
-#include "base/callback.h" |
#include "base/strings/stringprintf.h" |
+#include "net/cert/x509_certificate.h" |
namespace net { |
@@ -35,8 +34,29 @@ std::string CertSlotsString(const scoped_refptr<X509Certificate>& cert) { |
NSSProfileFilterChromeOS::NSSProfileFilterChromeOS() {} |
+NSSProfileFilterChromeOS::NSSProfileFilterChromeOS( |
+ const NSSProfileFilterChromeOS& other) { |
+ public_slot_.reset(other.public_slot_ ? |
+ PK11_ReferenceSlot(other.public_slot_.get()) : |
+ NULL); |
+ private_slot_.reset(other.private_slot_ ? |
+ PK11_ReferenceSlot(other.private_slot_.get()) : |
+ NULL); |
+} |
+ |
NSSProfileFilterChromeOS::~NSSProfileFilterChromeOS() {} |
+NSSProfileFilterChromeOS& NSSProfileFilterChromeOS::operator=( |
+ const NSSProfileFilterChromeOS& other) { |
+ public_slot_.reset(other.public_slot_ ? |
+ PK11_ReferenceSlot(other.public_slot_.get()) : |
+ NULL); |
+ private_slot_.reset(other.private_slot_ ? |
+ PK11_ReferenceSlot(other.private_slot_.get()) : |
+ NULL); |
+ return *this; |
+} |
+ |
void NSSProfileFilterChromeOS::Init(crypto::ScopedPK11Slot public_slot, |
crypto::ScopedPK11Slot private_slot) { |
public_slot_ = public_slot.Pass(); |