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

Unified Diff: components/favicon/ios/web_favicon_driver.mm

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/ios/web_favicon_driver.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/favicon/ios/web_favicon_driver.mm
diff --git a/components/favicon/ios/web_favicon_driver.mm b/components/favicon/ios/web_favicon_driver.mm
index 01f4ff8f62518d0d5ec31952d7f063c36e9fcffb..cba29896466f896d55e946a8e8c0b1588b3578ad 100644
--- a/components/favicon/ios/web_favicon_driver.mm
+++ b/components/favicon/ios/web_favicon_driver.mm
@@ -5,6 +5,7 @@
#include "components/favicon/ios/web_favicon_driver.h"
#include "base/bind.h"
+#include "base/memory/ptr_util.h"
#include "base/threading/sequenced_worker_pool.h"
#include "components/favicon/core/favicon_url.h"
#include "components/favicon/ios/favicon_url_util.h"
@@ -43,9 +44,9 @@ void WebFaviconDriver::CreateForWebState(
if (FromWebState(web_state))
return;
- web_state->SetUserData(UserDataKey(),
- new WebFaviconDriver(web_state, favicon_service,
- history_service, bookmark_model));
+ web_state->SetUserData(UserDataKey(), base::WrapUnique(new WebFaviconDriver(
+ web_state, favicon_service,
+ history_service, bookmark_model)));
}
void WebFaviconDriver::FetchFavicon(const GURL& url) {
« no previous file with comments | « components/favicon/ios/web_favicon_driver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698