Index: ios/chrome/browser/favicon/large_icon_cache.cc |
diff --git a/ios/chrome/browser/favicon/large_icon_cache.cc b/ios/chrome/browser/favicon/large_icon_cache.cc |
index 2841a675db0653d7b1150e65b5652ca659c37c17..b05b79b9946889b7ec3193ca48db48b7a767dcea 100644 |
--- a/ios/chrome/browser/favicon/large_icon_cache.cc |
+++ b/ios/chrome/browser/favicon/large_icon_cache.cc |
@@ -28,9 +28,9 @@ LargeIconCache::~LargeIconCache() {} |
void LargeIconCache::SetCachedResult( |
const GURL& url, |
const favicon_base::LargeIconResult& result) { |
- LargeIconCacheEntry* entry = new LargeIconCacheEntry; |
+ scoped_ptr<LargeIconCacheEntry> entry(new LargeIconCacheEntry); |
entry->result = CloneLargeIconResult(result); |
- cache_.Put(url, entry); |
+ cache_.Put(url, std::move(entry)); |
} |
scoped_ptr<favicon_base::LargeIconResult> LargeIconCache::GetCachedResult( |