Index: components/favicon/content/content_favicon_driver.cc |
diff --git a/components/favicon/content/content_favicon_driver.cc b/components/favicon/content/content_favicon_driver.cc |
index d6bbcac5d8f4465732789f634c9778e2e8779099..0b7c089b98307980a2588623e618f4ac72aee694 100644 |
--- a/components/favicon/content/content_favicon_driver.cc |
+++ b/components/favicon/content/content_favicon_driver.cc |
@@ -5,6 +5,7 @@ |
#include "components/favicon/content/content_favicon_driver.h" |
#include "base/bind.h" |
+#include "base/memory/ptr_util.h" |
#include "components/favicon/content/favicon_url_util.h" |
#include "components/favicon/core/favicon_service.h" |
#include "components/favicon/core/favicon_url.h" |
@@ -32,8 +33,9 @@ void ContentFaviconDriver::CreateForWebContents( |
return; |
web_contents->SetUserData( |
- UserDataKey(), new ContentFaviconDriver(web_contents, favicon_service, |
- history_service, bookmark_model)); |
+ UserDataKey(), |
+ base::WrapUnique(new ContentFaviconDriver( |
+ web_contents, favicon_service, history_service, bookmark_model))); |
} |
void ContentFaviconDriver::SaveFavicon() { |