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

Unified Diff: components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.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/physical_web_pages/physical_web_page_suggestions_provider.cc
diff --git a/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc b/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
index dc150909c418117abee4492134ba3283c062e9d2..475e3c88e5c2c0cad3891747cd974bfc3f7f6e88 100644
--- a/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
+++ b/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
@@ -47,7 +47,9 @@ void PhysicalWebPageSuggestionsProvider::OnDisplayableUrlsChanged(
std::vector<ContentSuggestion> suggestions;
for (const UrlInfo& url_info : urls) {
- if (suggestions.size() >= kMaxSuggestionsCount) break;
+ if (suggestions.size() >= kMaxSuggestionsCount) {
+ break;
+ }
ContentSuggestion suggestion(provided_category_, url_info.site_url.spec(),
url_info.site_url);
@@ -139,7 +141,9 @@ void PhysicalWebPageSuggestionsProvider::ClearDismissedSuggestionsForDebugging(
// Updates the |category_status_| and notifies the |observer_|, if necessary.
void PhysicalWebPageSuggestionsProvider::NotifyStatusChanged(
CategoryStatus new_status) {
- if (category_status_ == new_status) return;
+ if (category_status_ == new_status) {
+ return;
+ }
category_status_ = new_status;
observer()->OnCategoryStatusChanged(this, provided_category_, new_status);
}

Powered by Google App Engine
This is Rietveld 408576698