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

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

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: ios/chrome/browser/tabs/tab_unittest.mm
diff --git a/ios/chrome/browser/tabs/tab_unittest.mm b/ios/chrome/browser/tabs/tab_unittest.mm
index 6b4f1c02f22239cb1b35795085d740796da36d53..d25b50658be33ba551fc6b556b717da391273a68 100644
--- a/ios/chrome/browser/tabs/tab_unittest.mm
+++ b/ios/chrome/browser/tabs/tab_unittest.mm
@@ -318,11 +318,9 @@ class TabTest : public BlockCleanupTest {
#ifndef NDEBUG
// Method useful when debugging.
void LogHistoryQueryResult(const history::QueryResults* results) {
- typedef history::QueryResults::URLResultVector::const_iterator iterator;
- for (iterator i = results->begin(); i != results->end(); ++i) {
- history::URLResult* result = *i;
- NSLog(@"title = %@; url = %@", base::SysUTF16ToNSString(result->title()),
- base::SysUTF8ToNSString(result->url().spec()));
+ for (const auto& result : *results) {
+ NSLog(@"title = %@; url = %@", base::SysUTF16ToNSString(result.title()),
+ base::SysUTF8ToNSString(result.url().spec()));
}
}
#endif
« no previous file with comments | « components/history/core/browser/history_types_unittest.cc ('k') | ios/chrome/browser/ui/history/history_service_facade.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698