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); |
} |