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

Issue 12585003: drive: Add showroot=true to WAPI feed URLs and ignore "no parent" entries. (Closed)

Created:
7 years, 9 months ago by Haruki Sato
Modified:
7 years, 9 months ago
Reviewers:
hashimoto, kinaba
CC:
chromium-reviews, achuith+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

drive: Add showroot=true to WAPI feed URLs and ignore "no parent" entries. Forces DriveResourceMetadata to completely reject "no parent" entries (except the root). Makes ChangeListLoader to ignore "no parent" entries coming from the server. showroot=true lets us know the entries belonging to the "My Drive" root, so this CL only impacts the entries those are not in "My Drive". e.g. shared-with-me entries and entries the user (or a Drive app) explicitly set "no parent". BUG=174233, 164119 TEST=unittests. Open Files App and verify Google Drive is available. Note that this CL changes the behavior about "no parent" entries. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187734

Patch Set 1 #

Patch Set 2 : Update unittests. #

Total comments: 10

Patch Set 3 : update more unittests #

Patch Set 4 : rename GetParent, tidy up RefreshEntry. #

Patch Set 5 : Move showroot=1 to AddStandardUrlParams. #

Patch Set 6 : Fix more unittests. #

Patch Set 7 : rebase, revert version-up. #

Total comments: 8

Patch Set 8 : Fix comments and variable names. #

Patch Set 9 : fix browser_tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -86 lines) Patch
M chrome/browser/chromeos/drive/change_list_processor.cc View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_file_system_unittest.cc View 1 2 3 4 5 6 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_resource_metadata.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_resource_metadata.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_resource_metadata_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -13 lines 0 comments Download
M chrome/browser/chromeos/drive/resource_entry_conversion.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/google_apis/fake_drive_service_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/google_apis/gdata_wapi_operations_unittest.cc View 1 2 3 4 22 chunks +33 lines, -25 lines 0 comments Download
M chrome/browser/google_apis/gdata_wapi_url_generator.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/google_apis/gdata_wapi_url_generator_unittest.cc View 1 2 3 4 14 chunks +27 lines, -21 lines 0 comments Download
M chrome/test/data/chromeos/gdata/delta_file_added_in_directory.json View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/chromeos/gdata/delta_file_added_in_new_directory.json View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/chromeos/gdata/delta_file_added_in_root.json View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/chromeos/gdata/delta_file_deleted_in_root.json View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/chromeos/gdata/delta_file_moved_from_directory_to_root.json View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/test/data/chromeos/gdata/delta_file_renamed_in_directory.json View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/chromeos/gdata/remote_file_system_apitest_root_feed.json View 1 2 3 4 5 6 7 8 8 chunks +32 lines, -0 lines 0 comments Download
M chrome/test/data/chromeos/gdata/root_feed.json View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/test/data/chromeos/gdata/uploaded_file.json View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
Haruki Sato
This is what we talked offline. could you take a look?
7 years, 9 months ago (2013-03-11 08:49:15 UTC) #1
kinaba
https://codereview.chromium.org/12585003/diff/4005/chrome/browser/chromeos/drive/drive_resource_metadata.h File chrome/browser/chromeos/drive/drive_resource_metadata.h (right): https://codereview.chromium.org/12585003/diff/4005/chrome/browser/chromeos/drive/drive_resource_metadata.h#newcode55 chrome/browser/chromeos/drive/drive_resource_metadata.h:55: const int32 kProtoVersion = 3; Do we need to ...
7 years, 9 months ago (2013-03-11 09:22:37 UTC) #2
hashimoto
https://codereview.chromium.org/12585003/diff/4005/chrome/browser/chromeos/drive/drive_resource_metadata.cc File chrome/browser/chromeos/drive/drive_resource_metadata.cc (right): https://codereview.chromium.org/12585003/diff/4005/chrome/browser/chromeos/drive/drive_resource_metadata.cc#newcode519 chrome/browser/chromeos/drive/drive_resource_metadata.cc:519: if (old_entry && !old_entry->parent_resource_id().empty()) { Can't this parent_resource_id().empty() check ...
7 years, 9 months ago (2013-03-11 09:32:17 UTC) #3
Haruki Sato
https://codereview.chromium.org/12585003/diff/4005/chrome/browser/chromeos/drive/drive_resource_metadata.cc File chrome/browser/chromeos/drive/drive_resource_metadata.cc (right): https://codereview.chromium.org/12585003/diff/4005/chrome/browser/chromeos/drive/drive_resource_metadata.cc#newcode519 chrome/browser/chromeos/drive/drive_resource_metadata.cc:519: if (old_entry && !old_entry->parent_resource_id().empty()) { On 2013/03/11 09:32:17, hashimoto ...
7 years, 9 months ago (2013-03-11 14:15:35 UTC) #4
kinaba
On 2013/03/11 14:15:35, Haruki Sato wrote: > chrome/browser/chromeos/drive/drive_resource_metadata.h:55: const int32 kProtoVersion = 3; > On ...
7 years, 9 months ago (2013-03-12 01:40:09 UTC) #5
Haruki Sato
On 2013/03/12 01:40:09, kinaba wrote: > On 2013/03/11 14:15:35, Haruki Sato wrote: > > chrome/browser/chromeos/drive/drive_resource_metadata.h:55: ...
7 years, 9 months ago (2013-03-12 06:03:47 UTC) #6
Haruki Sato
Rebased and reverted the version-up change. Could you take another look? Thanks.
7 years, 9 months ago (2013-03-12 06:10:13 UTC) #7
kinaba
lgtm for patch set 7. I hope we can more casually version up after satoru's ...
7 years, 9 months ago (2013-03-12 06:14:13 UTC) #8
hashimoto
lgtm with nits https://codereview.chromium.org/12585003/diff/7009/chrome/browser/chromeos/drive/drive_resource_metadata.cc File chrome/browser/chromeos/drive/drive_resource_metadata.cc (right): https://codereview.chromium.org/12585003/diff/7009/chrome/browser/chromeos/drive/drive_resource_metadata.cc#newcode403 chrome/browser/chromeos/drive/drive_resource_metadata.cc:403: // this assumes |entry_proto| contains metadata ...
7 years, 9 months ago (2013-03-12 07:55:17 UTC) #9
Haruki Sato
https://codereview.chromium.org/12585003/diff/7009/chrome/browser/chromeos/drive/drive_resource_metadata.cc File chrome/browser/chromeos/drive/drive_resource_metadata.cc (right): https://codereview.chromium.org/12585003/diff/7009/chrome/browser/chromeos/drive/drive_resource_metadata.cc#newcode403 chrome/browser/chromeos/drive/drive_resource_metadata.cc:403: // this assumes |entry_proto| contains metadata only about the ...
7 years, 9 months ago (2013-03-12 08:17:23 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haruki@chromium.org/12585003/63001
7 years, 9 months ago (2013-03-12 08:17:47 UTC) #11
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 9 months ago (2013-03-12 12:29:24 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haruki@chromium.org/12585003/76022
7 years, 9 months ago (2013-03-12 13:30:00 UTC) #13
commit-bot: I haz the power
7 years, 9 months ago (2013-03-13 01:23:33 UTC) #14
Message was sent while issue was closed.
Change committed as 187734

Powered by Google App Engine
This is Rietveld 408576698