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

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

Issue 576063002: Modify the behavior of cancel button in syncing status to cancel all jobs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/common/extensions/api/file_manager_private.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/background/js/drive_sync_handler.js
diff --git a/ui/file_manager/file_manager/background/js/drive_sync_handler.js b/ui/file_manager/file_manager/background/js/drive_sync_handler.js
index b0182c202fc316d6eb8ede979d25c64b2c736fb8..2d920320d08108bc32594b484b2910514a0293f8 100644
--- a/ui/file_manager/file_manager/background/js/drive_sync_handler.js
+++ b/ui/file_manager/file_manager/background/js/drive_sync_handler.js
@@ -152,7 +152,8 @@ DriveSyncHandler.prototype.removeItem_ = function(status) {
* @private
*/
DriveSyncHandler.prototype.requestCancel_ = function(entry) {
- chrome.fileManagerPrivate.cancelFileTransfers([entry.toURL()], function() {});
+ // Cancel all jobs.
+ chrome.fileManagerPrivate.cancelFileTransfers(function() {});
};
/**
« no previous file with comments | « chrome/common/extensions/api/file_manager_private.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698