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

Issue 384543004: Get rid of DriveEntryKind. (Closed)

Created:
6 years, 5 months ago by fukino
Modified:
6 years, 5 months ago
CC:
chromium-reviews, tim+watch_chromium.org, nkostylev+watch_chromium.org, zea+watch_chromium.org, tfarina, yoshiki+watch_chromium.org, haitaol+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, maniscalco+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Get rid of DriveEntryKind. Basically DriveEntryKind is used for clasifying files into one of {Folder, Hosted document, Normal file}. We can classify them without DriveEntryKind by using FileResource::IsDirectory() and their mime type. Utility functions for clasification are now indepenent with ResourceEntry, and placed in drive_api_util.h. ResourceEntryKind is defined to provide users of ResourceEntry (e.g. sync file system) with similar accessor to file kind. BUG=357038 TBR=rogerta@chromium.org for one line removal in .gyp file and .gn file. TEST=run google_apis_unittests and unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282941

Patch Set 1 #

Total comments: 1

Patch Set 2 : Get rid of WAPI's Resource Entry. #

Patch Set 3 : Set kind in ConvertFileResourceToResourceEntry(). #

Patch Set 4 : Rebase and drop an unit test for glink file. #

Total comments: 8

Patch Set 5 : Removed some temporary variables and IsHostedDocumentByFileExtension(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -575 lines) Patch
M chrome/browser/chromeos/drive/change_list_processor_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system_util.cc View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_util_unittest.cc View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/drive/resource_entry_conversion.cc View 1 2 3 4 4 chunks +8 lines, -23 lines 0 comments Download
M chrome/browser/chromeos/drive/search_metadata.cc View 1 2 chunks +7 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/drive/sync/entry_update_performer.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_manager/file_tasks.cc View 1 2 3 4 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/drive/drive_api_util.h View 1 2 3 4 3 chunks +18 lines, -9 lines 0 comments Download
M chrome/browser/drive/drive_api_util.cc View 1 2 3 4 4 chunks +52 lines, -111 lines 0 comments Download
M chrome/browser/drive/drive_api_util_unittest.cc View 1 1 chunk +0 lines, -45 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/conflict_resolver_unittest.cc View 1 6 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/drive_backend_test_util.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer_unittest.cc View 1 10 chunks +30 lines, -21 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database.cc View 1 2 3 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend_v1/api_util.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync_file_system/drive_backend_v1/api_util_unittest.cc View 1 11 chunks +15 lines, -14 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend_v1/fake_api_util.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/drive_internals_ui.cc View 1 chunk +0 lines, -1 line 0 comments Download
M google_apis/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M google_apis/drive/drive_entry_kinds.h View 1 1 chunk +0 lines, -40 lines 0 comments Download
M google_apis/drive/gdata_wapi_parser.h View 1 5 chunks +12 lines, -55 lines 0 comments Download
M google_apis/drive/gdata_wapi_parser.cc View 1 3 chunks +6 lines, -110 lines 0 comments Download
M google_apis/drive/gdata_wapi_parser_unittest.cc View 1 6 chunks +10 lines, -94 lines 0 comments Download
M google_apis/google_apis.gyp View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
fukino
hashimoto san, could you take a look? As moving functions have strong relationship with DriveEntryKind, ...
6 years, 5 months ago (2014-07-10 06:45:28 UTC) #1
hashimoto
Thank you for taking this task! While you are working on this part, could you ...
6 years, 5 months ago (2014-07-10 08:33:12 UTC) #2
fukino
On 2014/07/10 08:33:12, hashimoto wrote: > Thank you for taking this task! > While you ...
6 years, 5 months ago (2014-07-14 08:00:46 UTC) #3
hashimoto
Thank you for doing this. Nice to see 370+ lines being removed! lgtm with nits. ...
6 years, 5 months ago (2014-07-14 08:23:26 UTC) #4
fukino
Thank you for comments! https://codereview.chromium.org/384543004/diff/60001/chrome/browser/chromeos/drive/resource_entry_conversion.cc File chrome/browser/chromeos/drive/resource_entry_conversion.cc (right): https://codereview.chromium.org/384543004/diff/60001/chrome/browser/chromeos/drive/resource_entry_conversion.cc#newcode82 chrome/browser/chromeos/drive/resource_entry_conversion.cc:82: const bool is_file = !is_folder ...
6 years, 5 months ago (2014-07-14 09:10:54 UTC) #5
fukino
tzik san, Could you take a look at chrome/browser/sync_file_system/*? DriveEntryKind is gone, but their counterparts ...
6 years, 5 months ago (2014-07-14 09:15:47 UTC) #6
tzik
lgtm
6 years, 5 months ago (2014-07-14 09:32:53 UTC) #7
fukino
On 2014/07/14 09:32:53, tzik wrote: > lgtm Thank you!
6 years, 5 months ago (2014-07-14 10:05:01 UTC) #8
fukino
Hi rogerta@, I TBRed you for google_apis/*.{gyp,gn} as this CL simply removes an unused file ...
6 years, 5 months ago (2014-07-14 10:08:18 UTC) #9
fukino
The CQ bit was checked by fukino@chromium.org
6 years, 5 months ago (2014-07-14 10:09:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fukino@chromium.org/384543004/80001
6 years, 5 months ago (2014-07-14 10:10:22 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-14 12:06:49 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-14 13:58:28 UTC) #13
Message was sent while issue was closed.
Change committed as 282941

Powered by Google App Engine
This is Rietveld 408576698