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

Unified Diff: chrome/browser/ui/webui/ntp/foreign_session_handler.cc

Issue 7966020: [Sync] Fix Session's handling of windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 9 years, 3 months 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: chrome/browser/ui/webui/ntp/foreign_session_handler.cc
diff --git a/chrome/browser/ui/webui/ntp/foreign_session_handler.cc b/chrome/browser/ui/webui/ntp/foreign_session_handler.cc
index cbab342de671067cc52f9af3b99cf95b9e389505..97800509f07fbab9f566f0a0940d59d85781751e 100644
--- a/chrome/browser/ui/webui/ntp/foreign_session_handler.cc
+++ b/chrome/browser/ui/webui/ntp/foreign_session_handler.cc
@@ -108,10 +108,10 @@ void ForeignSessionHandler::HandleGetForeignSessions(const ListValue* args) {
added_count < kMaxSessionsToShow; ++i) {
const SyncedSession* foreign_session = *i;
scoped_ptr<ListValue> window_list(new ListValue());
- for (std::vector<SessionWindow*>::const_iterator it =
+ for (SyncedSession::SyncedWindowMap::const_iterator it =
foreign_session->windows.begin(); it != foreign_session->windows.end();
++it) {
- SessionWindow* window = *it;
+ SessionWindow* window = it->second;
scoped_ptr<DictionaryValue> window_data(new DictionaryValue());
if (SessionWindowToValue(*window, window_data.get())) {
window_data->SetString("sessionTag", foreign_session->session_tag);

Powered by Google App Engine
This is Rietveld 408576698