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