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

Unified Diff: ios/chrome/browser/favicon/large_icon_cache.h

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
Index: ios/chrome/browser/favicon/large_icon_cache.h
diff --git a/ios/chrome/browser/favicon/large_icon_cache.h b/ios/chrome/browser/favicon/large_icon_cache.h
index 5d7d447225037e6a2a0b0f1ddea14ee29d975f06..1845c7c85d00f551ff971e6e58b362029c67c481 100644
--- a/ios/chrome/browser/favicon/large_icon_cache.h
+++ b/ios/chrome/browser/favicon/large_icon_cache.h
@@ -5,9 +5,10 @@
#ifndef IOS_CHROME_BROWSER_FAVICON_LARGE_ICON_CACHE_H_
#define IOS_CHROME_BROWSER_FAVICON_LARGE_ICON_CACHE_H_
+#include <memory>
+
#include "base/containers/mru_cache.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/keyed_service/core/keyed_service.h"
class GURL;
@@ -26,7 +27,7 @@ class ChromeBrowserState;
// Example usage:
// LargeIconCache* large_icon_cache =
// IOSChromeLargeIconServiceFactory::GetForBrowserState(browser_state);
-// scoped_ptr<favicon_base::LargeIconResult> icon =
+// std::unique_ptr<favicon_base::LargeIconResult> icon =
// large_icon_cache->GetCachedResult(...);
//
class LargeIconCache : public KeyedService {
@@ -40,14 +41,15 @@ class LargeIconCache : public KeyedService {
void SetCachedResult(const GURL& url, const favicon_base::LargeIconResult&);
// Returns a cached LargeIconResult.
- scoped_ptr<favicon_base::LargeIconResult> GetCachedResult(const GURL& url);
+ std::unique_ptr<favicon_base::LargeIconResult> GetCachedResult(
+ const GURL& url);
private:
// Clones a LargeIconResult.
- scoped_ptr<favicon_base::LargeIconResult> CloneLargeIconResult(
+ std::unique_ptr<favicon_base::LargeIconResult> CloneLargeIconResult(
const favicon_base::LargeIconResult& large_icon_result);
- base::MRUCache<GURL, scoped_ptr<LargeIconCacheEntry>> cache_;
+ base::MRUCache<GURL, std::unique_ptr<LargeIconCacheEntry>> cache_;
DISALLOW_COPY_AND_ASSIGN(LargeIconCache);
};
« no previous file with comments | « ios/chrome/browser/favicon/ios_chrome_large_icon_service_factory.cc ('k') | ios/chrome/browser/favicon/large_icon_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698