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

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

Issue 10695192: Add DeviceTypeAsString to SyncedSession. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comment to match real usage. Created 8 years, 5 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
« no previous file with comments | « chrome/browser/sync/glue/synced_session.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6193cf1c2ec31591605d5a161b957e39e25c7871..1e2066664aec9210969c2be454545a43d0f92c4e 100644
--- a/chrome/browser/ui/webui/ntp/foreign_session_handler.cc
+++ b/chrome/browser/ui/webui/ntp/foreign_session_handler.cc
@@ -161,6 +161,7 @@ void ForeignSessionHandler::HandleGetForeignSessions(const ListValue* args) {
scoped_ptr<DictionaryValue> session_data(new DictionaryValue());
session_data->SetString("tag", session_tag);
session_data->SetString("name", session->session_name);
+ session_data->SetString("deviceType", session->DeviceTypeAsString());
session_data->SetString("modifiedTime",
FormatSessionTime(session->modified_time));
@@ -331,7 +332,7 @@ bool ForeignSessionHandler::SessionWindowToValue(
modification_time = std::max(modification_time,
window.tabs[i]->timestamp);
tab_values->Append(tab_value.release());
- }
+ }
}
if (tab_values->GetSize() == 0)
return false;
« no previous file with comments | « chrome/browser/sync/glue/synced_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698