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

Unified Diff: ios/web/public/navigation_item_list.mm

Issue 2671773005: Updated CRWSessionController interface to use NavigationItems. (Closed)
Patch Set: Eugene's comments Created 3 years, 10 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: ios/web/public/navigation_item_list.mm
diff --git a/ios/web/public/navigation_item_list.mm b/ios/web/public/navigation_item_list.mm
new file mode 100644
index 0000000000000000000000000000000000000000..bba4d0ee2deade91089cca5ba1be5d5e7d4a8118
--- /dev/null
+++ b/ios/web/public/navigation_item_list.mm
@@ -0,0 +1,17 @@
+// 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/public/navigation_item_list.h"
+
+namespace web {
+
+NavigationItemList CreateUnscopedNavigationItemList(
+ const ScopedNavigationItemList& scoped_list) {
+ NavigationItemList list(scoped_list.size());
+ for (size_t index = 0; index < scoped_list.size(); ++index)
+ list[index] = scoped_list[index].get();
+ return list;
+}
+
+} // namespace web

Powered by Google App Engine
This is Rietveld 408576698