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

Issue 12588009: drive: Pass through AboutResouce from server among callbacks in ChangeListLoader. (Closed)

Created:
7 years, 9 months ago by Haruki Sato
Modified:
7 years, 9 months ago
Reviewers:
hidehiko, 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: Pass through AboutResouce from server amond callbacks in ChangeListLoader. This help us refactoring the pseudo tree structure with separate namespaces. We would like to create a dummy "My Drive" root in ChangeListProcessor and use it as "drive/root" instead of having it in DriveResourceMetadata. This operation needs the root folder ID. It also helps our migration to Drive API. BUG=174233 TEST=unittests. Open Files App and verify Google Drive is available. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189323

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Pass through AboutResource instead of just the folder ID. #

Patch Set 3 : fix unittest, remove garbage. #

Total comments: 8

Patch Set 4 : Remove unnecessary member, change LoadChangeFeed to receive the root resource ID. #

Total comments: 4

Patch Set 5 : fix argument type and name. #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -34 lines) Patch
M chrome/browser/chromeos/drive/change_list_loader.h View 1 2 3 4 5 3 chunks +15 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/drive/change_list_loader.cc View 1 2 3 4 5 11 chunks +26 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/drive/change_list_processor.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/change_list_processor.cc View 1 2 3 4 5 1 chunk +18 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_file_system_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_test_util.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_test_util.cc View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system/create_directory_operation_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Haruki Sato
Sorry for the long delay... Kinaba-san, could you take a look? This change does Abe-san, ...
7 years, 9 months ago (2013-03-15 06:42:19 UTC) #1
Haruki Sato
On 2013/03/15 06:42:19, Haruki Sato wrote: > Sorry for the long delay... > > Kinaba-san, ...
7 years, 9 months ago (2013-03-15 06:43:19 UTC) #2
hidehiko
> Abe-san, This CL stores the root folder ID from the server in ChangeListLoader. > ...
7 years, 9 months ago (2013-03-15 06:57:44 UTC) #3
Haruki Sato
Per offline discussion with hidehiko, refactored the ChangeListLoader more to simplify the arguments. Could you ...
7 years, 9 months ago (2013-03-18 04:20:25 UTC) #4
hidehiko
https://codereview.chromium.org/12588009/diff/20004/chrome/browser/chromeos/drive/change_list_loader.cc File chrome/browser/chromeos/drive/change_list_loader.cc (right): https://codereview.chromium.org/12588009/diff/20004/chrome/browser/chromeos/drive/change_list_loader.cc#newcode269 chrome/browser/chromeos/drive/change_list_loader.cc:269: DCHECK(about_resource.get()); Do you want to: DCHECK_EQ(util::GDataToDriveFileError(status) == DRIVE_FILE_OK, about_resource.get() ...
7 years, 9 months ago (2013-03-18 06:22:27 UTC) #5
Haruki Sato
https://codereview.chromium.org/12588009/diff/20004/chrome/browser/chromeos/drive/change_list_loader.cc File chrome/browser/chromeos/drive/change_list_loader.cc (right): https://codereview.chromium.org/12588009/diff/20004/chrome/browser/chromeos/drive/change_list_loader.cc#newcode269 chrome/browser/chromeos/drive/change_list_loader.cc:269: DCHECK(about_resource.get()); On 2013/03/18 06:22:27, hidehiko wrote: > Do you ...
7 years, 9 months ago (2013-03-18 07:06:41 UTC) #6
hidehiko
lgtm with nitpicks. https://codereview.chromium.org/12588009/diff/22002/chrome/browser/chromeos/drive/drive_test_util.cc File chrome/browser/chromeos/drive/drive_test_util.cc (right): https://codereview.chromium.org/12588009/diff/22002/chrome/browser/chromeos/drive/drive_test_util.cc#newcode205 chrome/browser/chromeos/drive/drive_test_util.cc:205: std::string root_resource_id, const std::string& ? https://codereview.chromium.org/12588009/diff/22002/chrome/browser/chromeos/drive/drive_test_util.h ...
7 years, 9 months ago (2013-03-18 07:09:50 UTC) #7
Haruki Sato
Kinaba-san, could you OWNER review? Thanks. https://codereview.chromium.org/12588009/diff/22002/chrome/browser/chromeos/drive/drive_test_util.cc File chrome/browser/chromeos/drive/drive_test_util.cc (right): https://codereview.chromium.org/12588009/diff/22002/chrome/browser/chromeos/drive/drive_test_util.cc#newcode205 chrome/browser/chromeos/drive/drive_test_util.cc:205: std::string root_resource_id, On ...
7 years, 9 months ago (2013-03-18 07:31:17 UTC) #8
kinaba
lgtm
7 years, 9 months ago (2013-03-18 09:46:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haruki@chromium.org/12588009/31003
7 years, 9 months ago (2013-03-18 09:57:53 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/12588009/31003
7 years, 9 months ago (2013-03-20 13:59:04 UTC) #11
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/drive/change_list_loader.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-20 13:59:07 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/12588009/52001
7 years, 9 months ago (2013-03-20 14:34:36 UTC) #13
commit-bot: I haz the power
7 years, 9 months ago (2013-03-20 17:11:59 UTC) #14
Message was sent while issue was closed.
Change committed as 189323

Powered by Google App Engine
This is Rietveld 408576698