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

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

Issue 1874473004: MD History: Support dynamically updating synced tab data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/foreign_session_handler.cc
diff --git a/chrome/browser/ui/webui/foreign_session_handler.cc b/chrome/browser/ui/webui/foreign_session_handler.cc
index c4eafcecf0cac8ae01aa6a58126efab12ce43be4..496d35693482c44c2e6002789e2c5c55208069eb 100644
--- a/chrome/browser/ui/webui/foreign_session_handler.cc
+++ b/chrome/browser/ui/webui/foreign_session_handler.cc
@@ -279,14 +279,16 @@ void ForeignSessionHandler::HandleGetForeignSessions(
scoped_ptr<base::DictionaryValue> session_data(
new base::DictionaryValue());
// The items which are to be written into |session_data| are also
- // described in chrome/browser/resources/ntp4/other_sessions.js in
- // @typedef for SessionData. Please update it whenever you add or remove
- // any keys here.
+ // described in chrome/browser/resources/history/externs.js
+ // @typedef for ForeignSession. Please update it whenever you add or
+ // remove any keys here.
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));
+ session_data->SetDouble("timestamp",
+ session->modified_time.ToJsTime());
Dan Beam 2016/04/08 01:52:01 indent off
tsergeant 2016/04/08 02:39:57 Done.
bool is_collapsed = collapsed_sessions->HasKey(session_tag);
session_data->SetBoolean("collapsed", is_collapsed);

Powered by Google App Engine
This is Rietveld 408576698