| Index: chrome/browser/resources/quota_internals/event_handler.js
|
| diff --git a/chrome/browser/resources/quota_internals/event_handler.js b/chrome/browser/resources/quota_internals/event_handler.js
|
| index 10b6bd345a815dafd817acd7c054d563303fe855..b4f7c5f5ba457d8cb72ee2d11ddc220d9ff19560 100644
|
| --- a/chrome/browser/resources/quota_internals/event_handler.js
|
| +++ b/chrome/browser/resources/quota_internals/event_handler.js
|
| @@ -126,7 +126,7 @@ function dateToText(value) {
|
| if (result)
|
| return result;
|
|
|
| - var lastAccessTime = new Date(value);
|
| + var time = new Date(value);
|
| var now = new Date();
|
| var delta = Date.now() - value;
|
|
|
| @@ -154,7 +154,7 @@ function dateToText(value) {
|
| result = Math.ceil(delta / DAY) + ' day ago ';
|
| }
|
|
|
| - result += '(' + lastAccessTime.toString() + ')';
|
| + result += '(' + time.toString() + ')';
|
| return result;
|
| }
|
|
|
| @@ -354,8 +354,11 @@ function handleHostData(event) {
|
| * |lastAccessTime|:
|
| * Last storage access time from the origin.
|
| * Number of milliseconds since UNIX epoch (Jan 1, 1970, 0:00:00 UTC).
|
| + * |lastModifiedTime|:
|
| + * Last modified time of the storage from the origin.
|
| + * Number of milliseconds since UNIX epoch.
|
| *
|
| - * |inUse|, |usedCount| and |lastAccessTime| can be missing,
|
| + * |inUse|, |usedCount|, |lastAccessTime| and |lastModifiedTime| can be missing,
|
| * and some additional fields can be included.
|
| * @param {CustomEvent} event OriginDataUpdated event.
|
| */
|
| @@ -368,6 +371,7 @@ function handleOriginData(event) {
|
| * inUse: {?boolean},
|
| * usedCount: {?number},
|
| * lastAccessTime: {?number}
|
| + * lastModifiedTime: {?number}
|
| * }>}
|
| */
|
| var dataArray = event.detail;
|
| @@ -425,6 +429,8 @@ function updateDescription() {
|
| ['inUse', 'Origin is in use?'],
|
| ['usedCount', 'Used count'],
|
| ['lastAccessTime', 'Last Access Time',
|
| + dateToText],
|
| + ['lastModifiedTime', 'Last Modified Time',
|
| dateToText]
|
| ];
|
| for (var i = 0; i < keyAndLabel.length; ++i) {
|
|
|