Index: components/ntp_snippets/sessions/foreign_sessions_suggestions_provider_unittest.cc |
diff --git a/components/ntp_snippets/sessions/foreign_sessions_suggestions_provider_unittest.cc b/components/ntp_snippets/sessions/foreign_sessions_suggestions_provider_unittest.cc |
index a65e5865fc08661b86681e58965f798a747503e0..ef953e4e2fa58e7742719ff557e1407c2ee557e7 100644 |
--- a/components/ntp_snippets/sessions/foreign_sessions_suggestions_provider_unittest.cc |
+++ b/components/ntp_snippets/sessions/foreign_sessions_suggestions_provider_unittest.cc |
@@ -51,8 +51,9 @@ const char kUrl11[] = "http://www.fake11.com/"; |
const char kTitle[] = "title is ignored"; |
SessionWindow* GetOrCreateWindow(SyncedSession* session, int window_id) { |
- if (session->windows.find(window_id) == session->windows.end()) |
+ if (session->windows.find(window_id) == session->windows.end()) { |
session->windows[window_id] = base::MakeUnique<SessionWindow>(); |
+ } |
return session->windows[window_id].get(); |
} |