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

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

Issue 2600583002: Remove ScopedVector from components/sessions. (Closed)
Patch Set: fixes 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 a0a17d92dd9d19fadf2b3c799dcad2ff89442d64..ddd546c99d35059b2b871c33b3ea1becd559af7d 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);

Powered by Google App Engine
This is Rietveld 408576698