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

Unified Diff: components/ntp_snippets/ntp_snippets_fetcher.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
Index: components/ntp_snippets/ntp_snippets_fetcher.h
diff --git a/components/ntp_snippets/ntp_snippets_fetcher.h b/components/ntp_snippets/ntp_snippets_fetcher.h
index 39c48e5d138c6199550f11eb6b973e7759206992..65e526a801d36380b8a825b926b5cd97c9612ed1 100644
--- a/components/ntp_snippets/ntp_snippets_fetcher.h
+++ b/components/ntp_snippets/ntp_snippets_fetcher.h
@@ -5,12 +5,12 @@
#ifndef COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_FETCHER_H_
#define COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_FETCHER_H_
+#include <memory>
#include <set>
#include <string>
#include "base/callback.h"
#include "base/callback_list.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner.h"
#include "net/url_request/url_fetcher_delegate.h"
@@ -36,7 +36,7 @@ class NTPSnippetsFetcher : public net::URLFetcherDelegate {
~NTPSnippetsFetcher() override;
// Adds a callback that is called when a new set of snippets are downloaded.
- scoped_ptr<SnippetsAvailableCallbackList::Subscription> AddCallback(
+ std::unique_ptr<SnippetsAvailableCallbackList::Subscription> AddCallback(
const SnippetsAvailableCallback& callback) WARN_UNUSED_RESULT;
// Fetches snippets from the server. |hosts| can be used to restrict the
@@ -55,7 +55,7 @@ class NTPSnippetsFetcher : public net::URLFetcherDelegate {
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
// The fetcher for downloading the snippets.
- scoped_ptr<net::URLFetcher> url_fetcher_;
+ std::unique_ptr<net::URLFetcher> url_fetcher_;
// The callbacks to notify when new snippets get fetched.
SnippetsAvailableCallbackList callback_list_;
« no previous file with comments | « components/network_time/network_time_tracker_unittest.cc ('k') | components/ntp_snippets/ntp_snippets_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698