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

Unified Diff: components/ntp_snippets/ntp_snippet.h

Issue 1851933002: Convert //url to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU fixup 7 Created 4 years, 9 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/domain_reliability/uploader.cc ('k') | components/ntp_snippets/ntp_snippet.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/ntp_snippet.h
diff --git a/components/ntp_snippets/ntp_snippet.h b/components/ntp_snippets/ntp_snippet.h
index daa1d52fa3971a25a8af52d05e790992520851a8..ead67b85c8e0cecef43c63880fb7f5fdddd2b4ea 100644
--- a/components/ntp_snippets/ntp_snippet.h
+++ b/components/ntp_snippets/ntp_snippet.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_NTP_SNIPPETS_NTP_SNIPPET_H_
#define COMPONENTS_NTP_SNIPPETS_NTP_SNIPPET_H_
+#include <memory>
#include <string>
#include "base/macros.h"
@@ -30,10 +31,10 @@ class NTPSnippet {
// dictionary doesn't contain at least a url. The keys in the dictionary are
// expected to be the same as the property name, with exceptions documented in
// the property comment.
- static scoped_ptr<NTPSnippet> CreateFromDictionary(
+ static std::unique_ptr<NTPSnippet> CreateFromDictionary(
const base::DictionaryValue& dict);
- scoped_ptr<base::DictionaryValue> ToDictionary() const;
+ std::unique_ptr<base::DictionaryValue> ToDictionary() const;
// URL of the page described by this snippet.
const GURL& url() const { return url_; }
« no previous file with comments | « components/domain_reliability/uploader.cc ('k') | components/ntp_snippets/ntp_snippet.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698