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

Unified Diff: ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js

Issue 673933003: Fix some type check errors in file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move logging for metrics to common part. Created 6 years, 2 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 | « no previous file | ui/file_manager/file_manager/foreground/js/metrics.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js
diff --git a/ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js b/ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js
index 092d9ce36154968d584eaaac34b5ba29ca6538e1..f20b26b2efc4984be1a6097fe7b6679444e1f682 100644
--- a/ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js
+++ b/ui/file_manager/file_manager/foreground/js/metadata/metadata_cache.js
@@ -195,7 +195,7 @@ MetadataCache.prototype.currentEvictionThreshold_ = function() {
*
* @param {Array.<Entry>} entries The list of entries.
* @param {string} type The metadata type.
- * @param {function(Object)} callback The metadata is passed to callback.
+ * @param {?function(Object)} callback The metadata is passed to callback.
* The callback is called asynchronously.
*/
MetadataCache.prototype.get = function(entries, type, callback) {
@@ -208,7 +208,7 @@ MetadataCache.prototype.get = function(entries, type, callback) {
*
* @param {Array.<Entry>} entries The list of entries.
* @param {string} type The metadata type.
- * @param {function(Object)} callback The metadata is passed to callback.
+ * @param {?function(Object)} callback The metadata is passed to callback.
* The callback is called asynchronously.
*/
MetadataCache.prototype.getLatest = function(entries, type, callback) {
@@ -222,7 +222,7 @@ MetadataCache.prototype.getLatest = function(entries, type, callback) {
* @param {string} type The metadata type.
* @param {boolean} refresh True to get the latest value and refresh the cache,
* false to get the value from the cache.
- * @param {function(Object)} callback The metadata is passed to callback.
+ * @param {?function(Object)} callback The metadata is passed to callback.
* The callback is called asynchronously.
* @private
*/
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/metrics.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698