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

Unified Diff: components/sessions/ios/ios_serialized_navigation_builder.h

Issue 2600583002: Remove ScopedVector from components/sessions. (Closed)
Patch Set: include Created 3 years, 12 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/ios/ios_serialized_navigation_builder.h
diff --git a/components/sessions/ios/ios_serialized_navigation_builder.h b/components/sessions/ios/ios_serialized_navigation_builder.h
index 7fb7abe360d2e418359345cc329f0a8ee2d751a6..def0b1f14349dfef1621e4bc8b7348b94baefdc9 100644
--- a/components/sessions/ios/ios_serialized_navigation_builder.h
+++ b/components/sessions/ios/ios_serialized_navigation_builder.h
@@ -8,8 +8,6 @@
#include <memory>
#include <vector>
-#include "base/memory/scoped_vector.h"
-
namespace web {
class NavigationItem;
}
@@ -34,9 +32,7 @@ class IOSSerializedNavigationBuilder {
// Converts a set of SerializedNavigationEntrys into a list of
// NavigationItems with sequential page IDs.
- // TODO(crbug.com/561329): Change this API to return a
- // std::vector<scoped_ptr> in coordination with changing downstream clients.
- static ScopedVector<web::NavigationItem> ToNavigationItems(
+ static std::vector<std::unique_ptr<web::NavigationItem>> ToNavigationItems(
const std::vector<SerializedNavigationEntry>& navigations);
};
« no previous file with comments | « components/sessions/core/tab_restore_service_client.h ('k') | components/sessions/ios/ios_serialized_navigation_builder.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698