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

Unified Diff: ios/chrome/browser/tabs/tab.mm

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: ios/chrome/browser/tabs/tab.mm
diff --git a/ios/chrome/browser/tabs/tab.mm b/ios/chrome/browser/tabs/tab.mm
index 10a401980a7d5d3e8b4579b901b14ad7849f7b76..dac801e1c4f1db0c0e1a3326758002f4ff205054 100644
--- a/ios/chrome/browser/tabs/tab.mm
+++ b/ios/chrome/browser/tabs/tab.mm
@@ -897,7 +897,7 @@ void AddNetworkClientFactoryOnIOThread(
- (void)replaceHistoryWithNavigations:
(const std::vector<sessions::SerializedNavigationEntry>&)navigations
currentIndex:(NSInteger)currentIndex {
- ScopedVector<web::NavigationItem> items =
+ std::vector<std::unique_ptr<web::NavigationItem>> items =
sessions::IOSSerializedNavigationBuilder::ToNavigationItems(navigations);
[self navigationManager]->ReplaceSessionHistory(std::move(items),
currentIndex);
« no previous file with comments | « ios/chrome/browser/sessions/tab_restore_service_delegate_impl_ios.mm ('k') | ios/web/navigation/crw_session_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698