diff options
author | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-20 20:28:37 +0000 |
---|---|---|
committer | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-20 20:28:37 +0000 |
commit | f4d5b1f8a204f6488a1fd4ae6bdf4014cf2ad943 (patch) | |
tree | 430c6ebb78bd01e415cf14564d0ab940a046182a /chrome/browser/dom_ui | |
parent | a3987e66a50193ca071b58b8e2ca0fef2f0b664a (diff) | |
download | chromium_src-f4d5b1f8a204f6488a1fd4ae6bdf4014cf2ad943.zip chromium_src-f4d5b1f8a204f6488a1fd4ae6bdf4014cf2ad943.tar.gz chromium_src-f4d5b1f8a204f6488a1fd4ae6bdf4014cf2ad943.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r-- | chrome/browser/dom_ui/new_tab_ui.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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<int>(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; } |