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

Unified Diff: components/ntp_snippets/bookmarks/bookmark_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/bookmarks/bookmark_suggestions_provider.cc
diff --git a/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc b/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc
index 95e95820e22dc29c34acb9442604594da996bd9a..3ec810f69cf849546edec85006732fe6e8d2d587 100644
--- a/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc
+++ b/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc
@@ -217,8 +217,9 @@ void BookmarkSuggestionsProvider::GetDismissedSuggestionsForDebugging(
void BookmarkSuggestionsProvider::ClearDismissedSuggestionsForDebugging(
Category category) {
DCHECK_EQ(category, provided_category_);
- if (!bookmark_model_->loaded())
+ if (!bookmark_model_->loaded()) {
return;
+ }
MarkAllBookmarksUndismissed(bookmark_model_);
}
@@ -348,16 +349,18 @@ void BookmarkSuggestionsProvider::FetchBookmarksInternal() {
}
void BookmarkSuggestionsProvider::FetchBookmarks() {
- if (bookmark_model_->loaded())
+ if (bookmark_model_->loaded()) {
FetchBookmarksInternal();
- else
+ } else {
fetch_requested_ = true;
+ }
}
void BookmarkSuggestionsProvider::NotifyStatusChanged(
CategoryStatus new_status) {
- if (category_status_ == new_status)
+ 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