Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Unified Diff: components/favicon/content/content_favicon_driver.cc

Issue 2845253002: Switch SupportsUserData uses to use unique_ptr. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/favicon/content/content_favicon_driver.h ('k') | components/favicon/ios/web_favicon_driver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « components/favicon/content/content_favicon_driver.h ('k') | components/favicon/ios/web_favicon_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698