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

Issue 13866009: Remove root resource id aliasing from DriveResourceMetadata. (Closed)

Created:
7 years, 8 months ago by hidehiko
Modified:
7 years, 8 months ago
Reviewers:
Haruki Sato, kinaba
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, oshima+watch_chromium.org, tzik+watch_chromium.org, kinuko+watch, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Remove root resource id aliasing from DriveResourceMetadata. This is a part of Drive API v2 migration. On Drive API v2, the root resource id is not fixed, while it is fixed on GData WAPI, which is "folder:root". By this CL, the MyDrive root entry will be created when the "drive" (grand root) is accessed for the first time, instead of creating it in DriveResourceMetadata::Initialize. Along with the change, this CL also implements the Fast-Fetch behavior in ChangeListLoader::DoLoadDirectoryFromServcer. BUG=174237 TEST=Ran unit_tests and tested manually on chromeos-chrome Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193362

Patch Set 1 #

Total comments: 24

Patch Set 2 : Address review comments #

Patch Set 3 : Fix JS comment. #

Total comments: 2

Patch Set 4 : Remove other resource id check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -118 lines) Patch
M chrome/browser/chromeos/drive/change_list_loader.h View 1 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/change_list_loader.cc View 1 2 3 3 chunks +82 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/drive/change_list_processor.h View 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/change_list_processor.cc View 1 1 chunk +11 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_file_system_unittest.cc View 1 7 chunks +44 lines, -53 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_file_system_util.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_file_system_util.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_resource_metadata.h View 1 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_resource_metadata.cc View 1 3 chunks +1 line, -18 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_resource_metadata_unittest.cc View 1 9 chunks +33 lines, -25 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_system_service.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system/create_directory_operation_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/search_metadata_unittest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/stale_cache_files_remover_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/file_manager/js/volume_manager.js View 1 2 1 chunk +10 lines, -6 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
hidehiko
Thank you for your review in advance, - hidehiko
7 years, 8 months ago (2013-04-09 14:02:18 UTC) #1
Haruki Sato
https://codereview.chromium.org/13866009/diff/1/chrome/browser/chromeos/drive/change_list_loader.cc File chrome/browser/chromeos/drive/change_list_loader.cc (right): https://codereview.chromium.org/13866009/diff/1/chrome/browser/chromeos/drive/change_list_loader.cc#newcode387 chrome/browser/chromeos/drive/change_list_loader.cc:387: DCHECK(!directory_fetch_info.empty()); Also this method assumes it's request for <drive>? ...
7 years, 8 months ago (2013-04-10 03:44:35 UTC) #2
kinaba
https://codereview.chromium.org/13866009/diff/1/chrome/browser/chromeos/drive/change_list_loader.cc File chrome/browser/chromeos/drive/change_list_loader.cc (right): https://codereview.chromium.org/13866009/diff/1/chrome/browser/chromeos/drive/change_list_loader.cc#newcode357 chrome/browser/chromeos/drive/change_list_loader.cc:357: // <other> directory should always exists, but mydrive root ...
7 years, 8 months ago (2013-04-10 04:34:44 UTC) #3
kinaba
Could you also please update the comment at: https://codereview.chromium.org/12978002/? Originally I introduced the code for ...
7 years, 8 months ago (2013-04-10 04:44:33 UTC) #4
hidehiko
Thank you for your review. PTAL? (Sorry, rebase diff is mixed...) https://codereview.chromium.org/13866009/diff/1/chrome/browser/chromeos/drive/change_list_loader.cc File chrome/browser/chromeos/drive/change_list_loader.cc (right): ...
7 years, 8 months ago (2013-04-10 06:11:19 UTC) #5
kinaba
lgtm https://codereview.chromium.org/13866009/diff/14001/chrome/browser/chromeos/drive/change_list_loader.cc File chrome/browser/chromeos/drive/change_list_loader.cc (right): https://codereview.chromium.org/13866009/diff/14001/chrome/browser/chromeos/drive/change_list_loader.cc#newcode191 chrome/browser/chromeos/drive/change_list_loader.cc:191: util::kDriveOtherDirSpecialResourceId) { I think we can simply remove ...
7 years, 8 months ago (2013-04-10 06:50:20 UTC) #6
Haruki Sato
lgtm thank you so much!
7 years, 8 months ago (2013-04-10 07:02:51 UTC) #7
hidehiko
Thank you for your review. Sending to CQ. https://codereview.chromium.org/13866009/diff/14001/chrome/browser/chromeos/drive/change_list_loader.cc File chrome/browser/chromeos/drive/change_list_loader.cc (right): https://codereview.chromium.org/13866009/diff/14001/chrome/browser/chromeos/drive/change_list_loader.cc#newcode191 chrome/browser/chromeos/drive/change_list_loader.cc:191: util::kDriveOtherDirSpecialResourceId) ...
7 years, 8 months ago (2013-04-10 07:43:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hidehiko@chromium.org/13866009/24002
7 years, 8 months ago (2013-04-10 07:43:20 UTC) #9
commit-bot: I haz the power
7 years, 8 months ago (2013-04-10 10:18:46 UTC) #10
Message was sent while issue was closed.
Change committed as 193362

Powered by Google App Engine
This is Rietveld 408576698