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

Unified Diff: chrome/browser/resources/file_manager/js/mock_chrome.js

Issue 10332272: Change modification date to include time and 'today' and 'yesterday' for appropriate dates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/resources/file_manager/js/file_manager.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/mock_chrome.js
===================================================================
--- chrome/browser/resources/file_manager/js/mock_chrome.js (revision 138218)
+++ chrome/browser/resources/file_manager/js/mock_chrome.js (working copy)
@@ -614,7 +614,10 @@
POWERPOINT_PRESENTATION_FILE_TYPE: 'PowerPoint presentation',
EXCEL_FILE_TYPE: 'Excel spreadsheet',
- SEARCH_NO_MATCHING_FILES: 'No files match <b>"$1"</b>'
+ SEARCH_NO_MATCHING_FILES: 'No files match <b>"$1"</b>',
+
+ TIME_TODAY: 'Today $1',
+ TIME_YESTERDAY: 'Yesterday $1'
});
}
};
@@ -723,3 +726,29 @@
this.popup_ = null;
}
};
+
+/**
+ * TODO(olege): Remove once a Chrome with this interface available is released.
+ */
+var v8Intl = (function() {
+
+var v8Intl = {};
+
+/**
+ * Constructs v8Intl.DateTimeFormat object given optional locales and options
+ * parameters.
+ *
+ * @constructor
+ * @param {Array?} locales Unused in the mock.
+ * @param {Object} options Unused in the mock.
+ */
+v8Intl.DateTimeFormat = function(locales, options) {
+ return {
+ format: function(dateValue) {
+ return dateValue.toString();
+ }
+ };
+};
+
+return v8Intl;
+}());
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698