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

Unified Diff: components/sessions/content/content_serialized_navigation_builder.h

Issue 1912843002: Convert //components/sessions 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/sessions/content/content_serialized_navigation_builder.h
diff --git a/components/sessions/content/content_serialized_navigation_builder.h b/components/sessions/content/content_serialized_navigation_builder.h
index 34c8483e1725df432055ee59b7d311b8a260e6a3..6e02b6b97e7963b1d56d9d34e3cfb436b99e6483 100644
--- a/components/sessions/content/content_serialized_navigation_builder.h
+++ b/components/sessions/content/content_serialized_navigation_builder.h
@@ -5,9 +5,9 @@
#ifndef COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_BUILDER_H_
#define COMPONENTS_SESSIONS_CONTENT_CONTENT_SERIALIZED_NAVIGATION_BUILDER_H_
+#include <memory>
#include <vector>
-#include "base/memory/scoped_ptr.h"
#include "components/sessions/core/sessions_export.h"
namespace content {
@@ -31,16 +31,16 @@ class SESSIONS_EXPORT ContentSerializedNavigationBuilder {
// Convert the given SerializedNavigationEntry into a NavigationEntry with the
// given page ID and context. The NavigationEntry will have a transition type
// of PAGE_TRANSITION_RELOAD and a new unique ID.
- static scoped_ptr<content::NavigationEntry> ToNavigationEntry(
+ static std::unique_ptr<content::NavigationEntry> ToNavigationEntry(
const SerializedNavigationEntry* navigation,
int page_id,
content::BrowserContext* browser_context);
// Converts a set of SerializedNavigationEntrys into a list of
// NavigationEntrys with sequential page IDs and the given context.
- static std::vector<scoped_ptr<content::NavigationEntry>> ToNavigationEntries(
- const std::vector<SerializedNavigationEntry>& navigations,
- content::BrowserContext* browser_context);
+ static std::vector<std::unique_ptr<content::NavigationEntry>>
+ ToNavigationEntries(const std::vector<SerializedNavigationEntry>& navigations,
+ content::BrowserContext* browser_context);
};
} // namespace sessions

Powered by Google App Engine
This is Rietveld 408576698