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

Unified Diff: components/favicon/core/favicon_service.h

Issue 1918083002: Convert //components/[f-n]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: … 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 | « components/favicon/core/favicon_handler_unittest.cc ('k') | components/favicon/core/favicon_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/favicon/core/favicon_service.h
diff --git a/components/favicon/core/favicon_service.h b/components/favicon/core/favicon_service.h
index 2861fd9b7b8c716c5266cc83972246c72ae7e970..9585934169f21c7407aff49adb9fa1718a3a30af 100644
--- a/components/favicon/core/favicon_service.h
+++ b/components/favicon/core/favicon_service.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include <memory>
#include <vector>
#include "base/callback.h"
@@ -35,7 +36,7 @@ class FaviconClient;
class FaviconService : public KeyedService {
public:
// The FaviconClient must outlive the constructed FaviconService.
- FaviconService(scoped_ptr<FaviconClient> favicon_client,
+ FaviconService(std::unique_ptr<FaviconClient> favicon_client,
history::HistoryService* history_service);
~FaviconService() override;
@@ -244,7 +245,7 @@ class FaviconService : public KeyedService {
favicon_bitmap_results);
base::hash_set<MissingFaviconURLHash> missing_favicon_urls_;
- scoped_ptr<FaviconClient> favicon_client_;
+ std::unique_ptr<FaviconClient> favicon_client_;
history::HistoryService* history_service_;
DISALLOW_COPY_AND_ASSIGN(FaviconService);
« no previous file with comments | « components/favicon/core/favicon_handler_unittest.cc ('k') | components/favicon/core/favicon_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698