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

Unified Diff: chrome/browser/ui/webui/browsing_history_handler_unittest.cc

Issue 2906953003: Remove ScopedVector usage from components/history (Closed)
Patch Set: Remove ScopedVector usage from components/history Created 3 years, 6 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: chrome/browser/ui/webui/browsing_history_handler_unittest.cc
diff --git a/chrome/browser/ui/webui/browsing_history_handler_unittest.cc b/chrome/browser/ui/webui/browsing_history_handler_unittest.cc
index 15ef926f32453dca2d688e33b43ed0ff32d0e749..43c2e772dab258fe34c9e853c1ce7f8a67c52b6b 100644
--- a/chrome/browser/ui/webui/browsing_history_handler_unittest.cc
+++ b/chrome/browser/ui/webui/browsing_history_handler_unittest.cc
@@ -308,8 +308,10 @@ TEST_F(BrowsingHistoryHandlerTest, MdTruncatesTitles) {
"ngurlislong.com"), base::Time());
ASSERT_GT(long_result.url().spec().size(), 300u);
+ std::vector<history::URLResult> result_vector;
+ result_vector.push_back(std::move(long_result));
history::QueryResults results;
- results.AppendURLBySwapping(&long_result);
+ results.SetURLResults(std::move(result_vector));
BrowsingHistoryHandlerWithWebUIForTesting handler(web_ui());
handler.RegisterMessages(); // Needed to create BrowsingHistoryService.
« no previous file with comments | « chrome/browser/extensions/api/history/history_api.cc ('k') | components/history/core/browser/history_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698