OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #import "ios/web/public/navigation_item_list.h" | |
6 | |
7 namespace web { | |
8 | |
9 NavigationItemList CreateUnscopedNavigationItemList( | |
10 const ScopedNavigationItemList& scoped_list) { | |
11 NavigationItemList list; | |
Eugene But (OOO till 7-30)
2017/02/03 23:33:33
Construct with size?
kkhorimoto
2017/02/04 02:45:31
Done.
| |
12 for (size_t index = 0; index < scoped_list.size(); ++index) | |
13 list.push_back(scoped_list[index].get()); | |
Eugene But (OOO till 7-30)
2017/02/03 23:33:33
emplace_back ?
kkhorimoto
2017/02/04 02:45:31
Acknowledged.
| |
14 return list; | |
15 } | |
16 | |
17 } // namespace web | |
OLD | NEW |