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

Issue 66293005: drive: Add drive/trash (Closed)

Created:
7 years, 1 month ago by hashimoto
Modified:
7 years, 1 month 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: Add drive/trash This directory is used to hold locally deleted entries which are waiting for server side deletion. BUG=260542 TEST=unit_tests

Patch Set 1 : #

Patch Set 2 : Fix test #

Patch Set 3 : Exclude trash from search result #

Total comments: 5

Patch Set 4 : Fix RemoveEntry #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -25 lines) Patch
M chrome/browser/chromeos/drive/file_system_unittest.cc View 1 chunk +11 lines, -17 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_util.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/resource_metadata.cc View 1 2 3 3 chunks +14 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/drive/resource_metadata_unittest.cc View 1 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/drive/search_metadata.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
hashimoto
7 years, 1 month ago (2013-11-11 08:05:52 UTC) #1
kinaba
https://codereview.chromium.org/66293005/diff/130001/chrome/browser/chromeos/drive/file_system_util.h File chrome/browser/chromeos/drive/file_system_util.h (right): https://codereview.chromium.org/66293005/diff/130001/chrome/browser/chromeos/drive/file_system_util.h#newcode89 chrome/browser/chromeos/drive/file_system_util.h:89: bool IsSpecialResourceId(const std::string& resource_id); I guess this functions should ...
7 years, 1 month ago (2013-11-12 02:10:26 UTC) #2
hashimoto
https://codereview.chromium.org/66293005/diff/130001/chrome/browser/chromeos/drive/file_system_util.h File chrome/browser/chromeos/drive/file_system_util.h (right): https://codereview.chromium.org/66293005/diff/130001/chrome/browser/chromeos/drive/file_system_util.h#newcode89 chrome/browser/chromeos/drive/file_system_util.h:89: bool IsSpecialResourceId(const std::string& resource_id); On 2013/11/12 02:10:27, kinaba wrote: ...
7 years, 1 month ago (2013-11-12 04:08:12 UTC) #3
hashimoto
7 years, 1 month ago (2013-11-12 05:56:31 UTC) #4
Chatted with kinaba offline.
Recursively checking parent ID from SearchMetadata will make it very slow.
Using ResourceEntry::deleted() to distinguish locally deleted entries results in
some complexity. (GetResourceEntry should return deleted entries or not?)

Will use drive/other to store deleted entries, while using
ResourceEntry::deleted() to filter out them from search result.
Closing this issue.

Powered by Google App Engine
This is Rietveld 408576698