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

Unified Diff: components/ntp_snippets/offline_pages/offline_pages_test_utils.cc

Issue 2520843002: [NTP] Cleanup: add brackets in components/ntp_snippets. [1/2] (Closed)
Patch Set: Created 4 years, 1 month 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: components/ntp_snippets/offline_pages/offline_pages_test_utils.cc
diff --git a/components/ntp_snippets/offline_pages/offline_pages_test_utils.cc b/components/ntp_snippets/offline_pages/offline_pages_test_utils.cc
index 428911d6c0db848e4ad480a239aadd63e1f09987..26a0e25be124e885b8acbe63e30debffb95a9748 100644
--- a/components/ntp_snippets/offline_pages/offline_pages_test_utils.cc
+++ b/components/ntp_snippets/offline_pages/offline_pages_test_utils.cc
@@ -31,8 +31,9 @@ void FakeOfflinePageModel::GetPagesMatchingQuery(
const MultipleOfflinePageItemCallback& callback) {
MultipleOfflinePageItemResult filtered_result;
for (auto& item : items_) {
- if (query->Matches(item))
+ if (query->Matches(item)) {
filtered_result.emplace_back(item);
+ }
}
callback.Run(filtered_result);
}

Powered by Google App Engine
This is Rietveld 408576698