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

Issue 23441049: drive: Enable recursive fast-fetch. (Closed)

Created:
7 years, 3 months ago by kinaba
Modified:
7 years, 3 months ago
Reviewers:
hidehiko, satorux1
CC:
chromium-reviews, tfarina, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

drive: Enable recursive fast-fetch. - LoadDirectoryIfNeeded calls GetResourceEntryByPath for directory metadata. - GetResourceEntryByPath calls LoadDirectoryIfNeeded for its parent if needed. The cycle enables to fetch deep entries at any time without waiting for the full feed nor user to dig down the hierarchy from the root. Along the way, I removed the handling of ReadDirectoryByPath("drive/other") that waited the full feed to arrive. By removing it, all FileSystem operations are now clearly ensured not blocked by full feed fetching. Listing up "drive/other" is meaningless; Files.app never does that. BUG=285614 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221712

Patch Set 1 #

Patch Set 2 : Fix tests #

Patch Set 3 : Made the test to surely use fast-fetch. #

Total comments: 4

Patch Set 4 : Review fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -59 lines) Patch
M chrome/browser/chromeos/drive/change_list_loader_unittest.cc View 1 2 4 chunks +3 lines, -32 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system.cc View 1 2 4 chunks +22 lines, -22 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_unittest.cc View 1 2 3 2 chunks +17 lines, -4 lines 0 comments Download
M chrome/browser/drive/fake_drive_service.h View 1 2 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/drive/fake_drive_service.cc View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
kinaba
Essential change is in one line (line 710 -> 714 in Patch Set 1), but ...
7 years, 3 months ago (2013-09-05 09:33:13 UTC) #1
kinaba
Oops, I'll fix the test tomorrow.
7 years, 3 months ago (2013-09-05 09:33:41 UTC) #2
kinaba
On 2013/09/05 09:33:41, kinaba wrote: > Oops, I'll fix the test tomorrow. Done.
7 years, 3 months ago (2013-09-06 03:06:18 UTC) #3
hidehiko
lgtm
7 years, 3 months ago (2013-09-06 04:18:01 UTC) #4
satorux1
Would it be possible to write a new test for this behavior?
7 years, 3 months ago (2013-09-06 04:28:00 UTC) #5
kinaba
On 2013/09/06 04:28:00, satorux1 wrote: > Would it be possible to write a new test ...
7 years, 3 months ago (2013-09-06 08:21:41 UTC) #6
satorux1
LGTM with nits. https://codereview.chromium.org/23441049/diff/20001/chrome/browser/chromeos/drive/file_system_unittest.cc File chrome/browser/chromeos/drive/file_system_unittest.cc (right): https://codereview.chromium.org/23441049/diff/20001/chrome/browser/chromeos/drive/file_system_unittest.cc#newcode384 chrome/browser/chromeos/drive/file_system_unittest.cc:384: // to test the "fast fetch" ...
7 years, 3 months ago (2013-09-06 08:32:25 UTC) #7
kinaba
https://codereview.chromium.org/23441049/diff/20001/chrome/browser/chromeos/drive/file_system_unittest.cc File chrome/browser/chromeos/drive/file_system_unittest.cc (right): https://codereview.chromium.org/23441049/diff/20001/chrome/browser/chromeos/drive/file_system_unittest.cc#newcode384 chrome/browser/chromeos/drive/file_system_unittest.cc:384: // to test the "fast fetch" feature is properly ...
7 years, 3 months ago (2013-09-06 10:12:14 UTC) #8
hidehiko
lgtm
7 years, 3 months ago (2013-09-06 10:19:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/23441049/31001
7 years, 3 months ago (2013-09-06 12:18:29 UTC) #10
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 15:14:37 UTC) #11
Message was sent while issue was closed.
Change committed as 221712

Powered by Google App Engine
This is Rietveld 408576698