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

Unified Diff: components/ntp_snippets/remote/ntp_snippets_status_service.cc

Issue 2520853002: [NTP] Cleanup: add brackets in components/ntp_snippets. [2/2] (Closed)
Patch Set: "else if". 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
« no previous file with comments | « components/ntp_snippets/features.cc ('k') | components/ntp_snippets/remote/remote_suggestions_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/remote/ntp_snippets_status_service.cc
diff --git a/components/ntp_snippets/remote/ntp_snippets_status_service.cc b/components/ntp_snippets/remote/ntp_snippets_status_service.cc
index 62514d270b101cc714a8169744ae08f4d88ccec1..017f9e57116539fa11b8af7e12b77a42edc1428e 100644
--- a/components/ntp_snippets/remote/ntp_snippets_status_service.cc
+++ b/components/ntp_snippets/remote/ntp_snippets_status_service.cc
@@ -76,8 +76,9 @@ void NTPSnippetsStatusService::OnSnippetsEnabledChanged() {
void NTPSnippetsStatusService::OnStateChanged(
SnippetsStatus new_snippets_status) {
- if (new_snippets_status == snippets_status_)
+ if (new_snippets_status == snippets_status_) {
return;
+ }
snippets_status_change_callback_.Run(snippets_status_, new_snippets_status);
snippets_status_ = new_snippets_status;
« no previous file with comments | « components/ntp_snippets/features.cc ('k') | components/ntp_snippets/remote/remote_suggestions_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698