Index: components/safe_browsing/base_ui_manager.cc |
diff --git a/components/safe_browsing/base_ui_manager.cc b/components/safe_browsing/base_ui_manager.cc |
index f951896d15ed7a225595073545f47c685472d31c..cd8940d9e1c7ecd423f80e290a6704881c332224 100644 |
--- a/components/safe_browsing/base_ui_manager.cc |
+++ b/components/safe_browsing/base_ui_manager.cc |
@@ -7,6 +7,7 @@ |
#include "base/bind.h" |
#include "base/callback.h" |
#include "base/i18n/rtl.h" |
+#include "base/memory/ptr_util.h" |
#include "base/metrics/histogram_macros.h" |
#include "base/supports_user_data.h" |
#include "components/safe_browsing/base_blocking_page.h" |
@@ -86,7 +87,7 @@ WhitelistUrlSet* GetOrCreateWhitelist(WebContents* web_contents) { |
static_cast<WhitelistUrlSet*>(web_contents->GetUserData(kWhitelistKey)); |
if (!site_list) { |
site_list = new WhitelistUrlSet; |
- web_contents->SetUserData(kWhitelistKey, site_list); |
+ web_contents->SetUserData(kWhitelistKey, base::WrapUnique(site_list)); |
} |
return site_list; |
} |