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

Unified Diff: ui/file_manager/file_manager/background/js/duplicate_finder.js

Issue 1148563004: Fix all compiler errors found by the new compiler version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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
Index: ui/file_manager/file_manager/background/js/duplicate_finder.js
diff --git a/ui/file_manager/file_manager/background/js/duplicate_finder.js b/ui/file_manager/file_manager/background/js/duplicate_finder.js
index cd8f12d05f9c8266b4efa663f94ad765851480a1..2ad13d235753d85b19beb6e69d845b10d45cbdb4 100644
--- a/ui/file_manager/file_manager/background/js/duplicate_finder.js
+++ b/ui/file_manager/file_manager/background/js/duplicate_finder.js
@@ -108,12 +108,12 @@ importer.DriveDuplicateFinder.prototype.computeHash_ = function(entry) {
/**
* Finds files with content hashes matching the given hash.
* @param {string} hash The content hash of the file to find.
- * @return {!Promise<Array<string>>} The URLs of the found files. If there are
+ * @return {!Promise<!Array<string>>} The URLs of the found files. If there are
* no matches, the list will be empty.
* @private
*/
importer.DriveDuplicateFinder.prototype.findByHash_ = function(hash) {
- return /** @type {!Promise<Array<string>>} */ (
+ return /** @type {!Promise<!Array<string>>} */ (
this.getDriveId_()
.then(this.searchFilesByHash_.bind(this, hash)));
};
@@ -142,7 +142,7 @@ importer.DriveDuplicateFinder.prototype.getDriveId_ = function() {
* A promise-based wrapper for chrome.fileManagerPrivate.searchFilesByHashes.
* @param {string} hash The content hash to search for.
* @param {string} volumeId The volume to search.
- * @return {!Promise<Array<string>>} A list of file URLs.
+ * @return {!Promise<!Array<string>>} A list of file URLs.
* @private
*/
importer.DriveDuplicateFinder.prototype.searchFilesByHash_ =
@@ -155,7 +155,7 @@ importer.DriveDuplicateFinder.prototype.searchFilesByHash_ =
volumeId,
[hash],
/**
- * @param {!Object<string, Array<string>>} urls
+ * @param {!Object<string, !Array<string>>} urls
* @this {importer.DriveDuplicateFinder}
*/
function(urls) {

Powered by Google App Engine
This is Rietveld 408576698