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

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

Issue 10332311: Remove remaining uses of v8Locale. Fix the call to v8Intl.DateTimeFormat(). (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 138460)
+++ chrome/browser/resources/file_manager/js/mock_chrome.js (working copy)
@@ -750,5 +750,20 @@
};
};
+/**
+ * @constructor
+ * @param {Array?} locales Unused in the mock.
+ * @param {Object} options Unused in the mock.
+ */
+v8Intl.Collator = function(locales, options) {
+ return {
+ compare: function(a, b) {
+ if (a > b) return 1;
+ if (a < b) return -1;
+ return 0;
+ }
+ };
+};
+
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