| 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
|
|
|