From f4d5b1f8a204f6488a1fd4ae6bdf4014cf2ad943 Mon Sep 17 00:00:00 2001 From: "arv@google.com" Date: Mon, 20 Jul 2009 20:28:37 +0000 Subject: Adds timestamp to session restore for tabs and windows. BUG=13134 TEST=None Review URL: http://codereview.chromium.org/155609 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21095 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/dom_ui/new_tab_ui.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/browser/dom_ui') diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc index e66b557..1787ae5 100644 --- a/chrome/browser/dom_ui/new_tab_ui.cc +++ b/chrome/browser/dom_ui/new_tab_ui.cc @@ -1076,8 +1076,7 @@ void RecentlyBookmarkedHandler::SendBookmarksToPage() { DictionaryValue* entry_value = new DictionaryValue; SetURLTitleAndDirection(entry_value, WideToUTF16(node->GetTitle()), node->GetURL()); - entry_value->SetInteger(L"time", - static_cast(node->date_added().ToTimeT())); + entry_value->SetReal(L"time", node->date_added().ToDoubleT()); list_value.Append(entry_value); } dom_ui_->CallJavascriptFunction(L"recentlyBookmarked", list_value); @@ -1261,6 +1260,7 @@ bool RecentlyClosedTabsHandler::TabToValue( SetURLTitleAndDirection(dictionary, current_navigation.title(), current_navigation.url()); dictionary->SetString(L"type", L"tab"); + dictionary->SetReal(L"timestamp", tab.timestamp.ToDoubleT()); return true; } @@ -1286,6 +1286,7 @@ bool RecentlyClosedTabsHandler::WindowToValue( } dictionary->SetString(L"type", L"window"); + dictionary->SetReal(L"timestamp", window.timestamp.ToDoubleT()); dictionary->Set(L"tabs", tab_values); return true; } -- cgit v1.1