Index: chrome/browser/extensions/api/sessions/sessions_api.cc |
diff --git a/chrome/browser/extensions/api/sessions/sessions_api.cc b/chrome/browser/extensions/api/sessions/sessions_api.cc |
index da11815ab004a794d57f8826dc735522c7c338bd..83f3b82888ae397b0ace5ede480993c5395d2391 100644 |
--- a/chrome/browser/extensions/api/sessions/sessions_api.cc |
+++ b/chrome/browser/extensions/api/sessions/sessions_api.cc |
@@ -336,7 +336,7 @@ api::sessions::Device SessionsGetDevicesFunction::CreateDeviceModel( |
static_cast<int>(device_struct.sessions.size()) < max_results; |
++it) { |
std::unique_ptr<api::sessions::Session> session_model( |
- CreateSessionModel(*it->second, session->session_tag)); |
+ CreateSessionModel(it->second->wrapped_window, session->session_tag)); |
if (session_model) |
device_struct.sessions.push_back(std::move(*session_model)); |
} |