Index: chrome/browser/net/nss_context_chromeos.cc |
diff --git a/chrome/browser/net/nss_context_chromeos.cc b/chrome/browser/net/nss_context_chromeos.cc |
index 0b550cb3c80d6df9f958322e610f673e69625c6e..7162668e49dd576b5e578056555e800526c1b396 100644 |
--- a/chrome/browser/net/nss_context_chromeos.cc |
+++ b/chrome/browser/net/nss_context_chromeos.cc |
@@ -7,6 +7,7 @@ |
#include <utility> |
#include "base/macros.h" |
+#include "base/memory/ptr_util.h" |
#include "base/memory/weak_ptr.h" |
#include "base/supports_user_data.h" |
#include "chrome/browser/profiles/profile_io_data.h" |
@@ -88,7 +89,7 @@ net::NSSCertDatabaseChromeOS* GetNSSCertDatabaseChromeOS( |
context->GetUserData(kDatabaseManagerKey)); |
if (!manager) { |
manager = new NSSCertDatabaseChromeOSManager(GetUsername(context)); |
- context->SetUserData(kDatabaseManagerKey, manager); |
+ context->SetUserData(kDatabaseManagerKey, base::WrapUnique(manager)); |
} |
return manager->GetNSSCertDatabase(callback); |
} |