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

Issue 576063002: Modify the behavior of cancel button in syncing status to cancel all jobs. (Closed)

Created:
6 years, 3 months ago by iseki
Modified:
6 years, 3 months ago
Reviewers:
Devlin, hirono, kinaba
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, yoshiki+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Modify the action of cancel button in syncing status to cancel all jobs. * Previous behavior is to cancel only one item. * After Issue 400636, this behavior doesn't make sense because only the number is decreased. BUG=414610 TEST=manually 1. Copy the file from Download to Drive. 2. Push the button in syncing status. 3. Confirm all jobs are canceled. Committed: https://crrev.com/6521367eb71a626aaf6c1596086ee6ba410a299c Cr-Commit-Position: refs/heads/master@{#295638}

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -35 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc View 1 2 3 4 1 chunk +30 lines, -33 lines 0 comments Download
M chrome/common/extensions/api/file_manager_private.idl View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ui/file_manager/file_manager/background/js/drive_sync_handler.js View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 21 (4 generated)
iseki
Please take a look:)
6 years, 3 months ago (2014-09-17 09:27:07 UTC) #2
kinaba
https://codereview.chromium.org/576063002/diff/1/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc File chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc (left): https://codereview.chromium.org/576063002/diff/1/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc#oldcode562 chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc:562: EXTENSION_FUNCTION_VALIDATE(params); I guess you are planning to update the ...
6 years, 3 months ago (2014-09-18 02:15:55 UTC) #3
iseki
Thank you for your review :) The attachment from Gmail needs to cancel single jobs. ...
6 years, 3 months ago (2014-09-18 05:32:28 UTC) #4
kinaba
lgtm https://codereview.chromium.org/576063002/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc File chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc (right): https://codereview.chromium.org/576063002/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc#newcode580 chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc:580: } else { The "// Create the mapping ...
6 years, 3 months ago (2014-09-18 05:39:16 UTC) #5
iseki
Thanks! https://codereview.chromium.org/576063002/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc File chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc (right): https://codereview.chromium.org/576063002/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc#newcode580 chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc:580: } else { On 2014/09/18 05:39:16, kinaba wrote: ...
6 years, 3 months ago (2014-09-18 05:45:45 UTC) #6
iseki
Please take a look.
6 years, 3 months ago (2014-09-18 05:46:12 UTC) #8
iseki
@hirono ui/file_manager/file_manager/background/js/drive_sync_handler.js
6 years, 3 months ago (2014-09-18 05:49:15 UTC) #9
hirono
https://codereview.chromium.org/576063002/diff/40001/ui/file_manager/file_manager/background/js/drive_sync_handler.js File ui/file_manager/file_manager/background/js/drive_sync_handler.js (right): https://codereview.chromium.org/576063002/diff/40001/ui/file_manager/file_manager/background/js/drive_sync_handler.js#newcode156 ui/file_manager/file_manager/background/js/drive_sync_handler.js:156: chrome.fileManagerPrivate.cancelFileTransfers([], function() {}); Can we make it optional argument? ...
6 years, 3 months ago (2014-09-18 05:50:43 UTC) #10
iseki
Thank you for your review:) https://codereview.chromium.org/576063002/diff/40001/ui/file_manager/file_manager/background/js/drive_sync_handler.js File ui/file_manager/file_manager/background/js/drive_sync_handler.js (right): https://codereview.chromium.org/576063002/diff/40001/ui/file_manager/file_manager/background/js/drive_sync_handler.js#newcode156 ui/file_manager/file_manager/background/js/drive_sync_handler.js:156: chrome.fileManagerPrivate.cancelFileTransfers([], function() {}); On ...
6 years, 3 months ago (2014-09-18 08:13:44 UTC) #11
hirono
lgtm with a nit. Thank you! https://codereview.chromium.org/576063002/diff/60001/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc File chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc (right): https://codereview.chromium.org/576063002/diff/60001/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc#newcode596 chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc:596: file_path = drive::util::ExtractDrivePath(file_path); ...
6 years, 3 months ago (2014-09-18 08:17:59 UTC) #12
iseki
Thank you for your review :) https://codereview.chromium.org/576063002/diff/60001/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc File chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc (right): https://codereview.chromium.org/576063002/diff/60001/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc#newcode596 chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc:596: file_path = drive::util::ExtractDrivePath(file_path); ...
6 years, 3 months ago (2014-09-18 08:25:12 UTC) #13
iseki
Please take a look. @rdevlin.cronin chrome/common/extensions/api/file_manager_private.idl
6 years, 3 months ago (2014-09-18 08:28:10 UTC) #15
Devlin
chrome/common/extensions/api/file_manager_private.idl lgtm once comment is added. https://codereview.chromium.org/576063002/diff/80001/chrome/common/extensions/api/file_manager_private.idl File chrome/common/extensions/api/file_manager_private.idl (right): https://codereview.chromium.org/576063002/diff/80001/chrome/common/extensions/api/file_manager_private.idl#newcode667 chrome/common/extensions/api/file_manager_private.idl:667: // |fileUrls| Array ...
6 years, 3 months ago (2014-09-18 18:47:55 UTC) #16
iseki
Thank you for your review. https://codereview.chromium.org/576063002/diff/80001/chrome/common/extensions/api/file_manager_private.idl File chrome/common/extensions/api/file_manager_private.idl (right): https://codereview.chromium.org/576063002/diff/80001/chrome/common/extensions/api/file_manager_private.idl#newcode667 chrome/common/extensions/api/file_manager_private.idl:667: // |fileUrls| Array of ...
6 years, 3 months ago (2014-09-19 00:36:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/576063002/100001
6 years, 3 months ago (2014-09-19 00:39:54 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 4a18d34f19dbfc5488075f3615131103487fb7fc
6 years, 3 months ago (2014-09-19 01:38:32 UTC) #20
commit-bot: I haz the power
6 years, 3 months ago (2014-09-19 01:39:05 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6521367eb71a626aaf6c1596086ee6ba410a299c
Cr-Commit-Position: refs/heads/master@{#295638}

Powered by Google App Engine
This is Rietveld 408576698