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

Unified Diff: ios/web/navigation/navigation_item_impl_list.mm

Issue 2672723003: Converted CRWSessionController to use NavigationItems. (Closed)
Patch Set: test fixes, self review Created 3 years, 11 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 | « ios/web/navigation/navigation_item_impl_list.h ('k') | ios/web/navigation/navigation_manager_impl.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/navigation_item_impl_list.mm
diff --git a/ios/web/navigation/navigation_item_impl_list.mm b/ios/web/navigation/navigation_item_impl_list.mm
new file mode 100644
index 0000000000000000000000000000000000000000..530be4b16eb9878f39e6cb9e4efc6194e6d5e3d8
--- /dev/null
+++ b/ios/web/navigation/navigation_item_impl_list.mm
@@ -0,0 +1,22 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import "ios/web/navigation/navigation_item_impl_list.h"
+
+#import "ios/web/navigation/navigation_item_impl.h"
+
+namespace web {
+
+ScopedNavigationItemImplList CreateScopedNavigationItemImplList(
+ ScopedNavigationItemList scoped_item_list) {
+ ScopedNavigationItemImplList list;
+ for (size_t index = 0; index < scoped_item_list.size(); ++index) {
+ std::unique_ptr<NavigationItemImpl> scoped_item_impl(
+ static_cast<NavigationItemImpl*>(scoped_item_list[index].release()));
+ list.push_back(std::move(scoped_item_impl));
+ }
+ return list;
+}
+
+} // namespace web
« no previous file with comments | « ios/web/navigation/navigation_item_impl_list.h ('k') | ios/web/navigation/navigation_manager_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698