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

Issue 68543002: drive: Support offline delete (Closed)

Created:
7 years, 1 month ago by hashimoto
Modified:
7 years ago
Reviewers:
kinaba
CC:
chromium-reviews, tim+watch_chromium.org, nkostylev+watch_chromium.org, hashimoto+watch_chromium.org, tzik, tfarina, haitaol+watch_chromium.org, oshima+watch_chromium.org, kinuko+watch, rsimha+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

drive: Support offline delete Remove API related code from RemoveOperation, they are handled by RemovePerformer. Add OperationObserver::OnEntryRemovedByOperation to kick SyncClient from RemoveOperation. Add SyncClient::AddRemoveTask to kick RemovePerformer. Modify SyncClient::StartProcessingBacklog to kick RemovePerformer on start up. BUG=260542 TEST=unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=237296

Patch Set 1 : #

Patch Set 2 : Fix RemovePerformerTest #

Patch Set 3 : Move to drive/other and mark as deleted #

Total comments: 10

Patch Set 4 : Switch back to use drive/trash, address comments #

Patch Set 5 : rebase #

Patch Set 6 : Stop modifying local state after server side update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -241 lines) Patch
M chrome/browser/chromeos/drive/file_system.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system/operation_observer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/operation_test_base.h View 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/operation_test_base.cc View 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/remove_operation.h View 1 2 3 3 chunks +2 lines, -17 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/remove_operation.cc View 3 5 chunks +28 lines, -134 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/remove_operation_unittest.cc View 1 2 3 4 5 6 chunks +18 lines, -67 lines 0 comments Download
M chrome/browser/chromeos/drive/sync/remove_performer.cc View 1 2 3 4 5 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/drive/sync/remove_performer_unittest.cc View 1 2 3 4 5 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/drive/sync_client.h View 1 2 3 4 5 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/sync_client.cc View 1 2 3 4 8 chunks +75 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/drive/sync_client_unittest.cc View 1 2 3 4 4 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
hashimoto
This change depends on https://codereview.chromium.org/66293005/ ("Add drive/trash")
7 years, 1 month ago (2013-11-12 01:21:38 UTC) #1
hashimoto
Sorry, I forgot to update the change description. Updated.
7 years, 1 month ago (2013-11-12 02:11:10 UTC) #2
hashimoto
Changed the approach to move deleted entries to drive/other and set_deleted(true), instead of moving them ...
7 years, 1 month ago (2013-11-12 05:53:19 UTC) #3
kinaba
https://codereview.chromium.org/68543002/diff/250001/chrome/browser/chromeos/drive/change_list_processor.cc File chrome/browser/chromeos/drive/change_list_processor.cc (right): https://codereview.chromium.org/68543002/diff/250001/chrome/browser/chromeos/drive/change_list_processor.cc#newcode325 chrome/browser/chromeos/drive/change_list_processor.cc:325: existing_entry.deleted()) { Is it correct that a file inside ...
7 years, 1 month ago (2013-11-12 06:21:28 UTC) #4
hashimoto
New patch set. Stopped deleting local entry after RemovePerformer finishes deletion, to avoid conflicting with ...
7 years ago (2013-11-25 10:13:57 UTC) #5
kinaba
lgtm. let's see how it goes.
7 years ago (2013-11-26 06:49:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/68543002/640001
7 years ago (2013-11-26 07:12:03 UTC) #7
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=193267
7 years ago (2013-11-26 07:59:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/68543002/640001
7 years ago (2013-11-26 08:02:53 UTC) #9
commit-bot: I haz the power
7 years ago (2013-11-26 10:27:54 UTC) #10
Message was sent while issue was closed.
Change committed as 237296

Powered by Google App Engine
This is Rietveld 408576698