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

Unified Diff: components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.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
Index: components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc
diff --git a/components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc b/components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc
index d05da3759e6d87e12eafbd789603092ac41eb7d6..5178292330f217f6dfe182ff627df378e52f6724 100644
--- a/components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc
+++ b/components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc
@@ -369,8 +369,9 @@ ForeignSessionsSuggestionsProvider::GetSuggestionCandidates(
std::unique_ptr<sessions::SessionWindow>>& key_value :
session->windows) {
for (const std::unique_ptr<SessionTab>& tab : key_value.second->tabs) {
- if (tab->navigations.empty())
+ if (tab->navigations.empty()) {
continue;
+ }
const SerializedNavigationEntry& navigation = tab->navigations.back();
const std::string id = navigation.virtual_url().spec();

Powered by Google App Engine
This is Rietveld 408576698