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

Unified Diff: ios/chrome/browser/favicon/favicon_loader.mm

Issue 1861593005: Convert //ios from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 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 | « ios/chrome/browser/favicon/favicon_loader.h ('k') | ios/chrome/browser/favicon/favicon_service_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/favicon/favicon_loader.mm
diff --git a/ios/chrome/browser/favicon/favicon_loader.mm b/ios/chrome/browser/favicon/favicon_loader.mm
index 5f22de03a1de2d32e73e0b006210fae753d49359..eb947b13dc2f4db20ffcbdb7dcdd852a37615cd3 100644
--- a/ios/chrome/browser/favicon/favicon_loader.mm
+++ b/ios/chrome/browser/favicon/favicon_loader.mm
@@ -53,7 +53,7 @@ UIImage* FaviconLoader::ImageForURL(const GURL& url,
if (favicon_service_) {
int size = gfx::kFaviconSize * [UIScreen mainScreen].scale;
- scoped_ptr<RequestData> request_data(new RequestData(key, block));
+ std::unique_ptr<RequestData> request_data(new RequestData(key, block));
favicon_base::FaviconResultsCallback callback =
base::Bind(&FaviconLoader::OnFaviconAvailable, base::Unretained(this),
base::Passed(&request_data));
@@ -72,7 +72,7 @@ void FaviconLoader::PurgeCache() {
}
void FaviconLoader::OnFaviconAvailable(
- scoped_ptr<RequestData> request_data,
+ std::unique_ptr<RequestData> request_data,
const std::vector<favicon_base::FaviconRawBitmapResult>&
favicon_bitmap_results) {
DCHECK(request_data);
« no previous file with comments | « ios/chrome/browser/favicon/favicon_loader.h ('k') | ios/chrome/browser/favicon/favicon_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698