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

Issue 9836086: Added logic that will return the result of the first chunk of root feed and continue fetching the r… (Closed)

Created:
8 years, 9 months ago by zel
Modified:
8 years, 9 months ago
Reviewers:
satorux1, Ben Chan
CC:
chromium-reviews, nkostylev+watch_chromium.org, achuith+watch_chromium.org, rginda+watch_chromium.org, arv (Not doing code reviews), stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Added logic that will return the result of the first chunk of root feed and continue fetching the rest in background. This logic will kick in only if we don't have cached feed in place already. This CL also fixes a minor link parser problem and makes /gdata watchable by file manager. The root directory also does not contain any orphaned/shared content now. BUG=chromium-os:28381, chromium-os:28382 TEST=Manual: make sure /gdata root content shows up pretty fast even for new accounts and that we refresh it later with the rest. Unit: Added orphaned file checks to GDataFileSystemTest.CachedFeedLoading. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=128830

Patch Set 1 #

Patch Set 2 : crash fix #

Total comments: 25

Patch Set 3 : #

Patch Set 4 : unit tests #

Patch Set 5 : #

Patch Set 6 : rebase #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : fixed asserts in browser_tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+497 lines, -109 lines) Patch
M chrome/browser/chromeos/extensions/file_browser_private_api.h View 1 2 3 4 5 6 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.cc View 1 2 3 4 5 6 6 chunks +55 lines, -47 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 2 3 4 5 6 4 chunks +66 lines, -40 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_files.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_operations.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_operations.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/resources/file_manager/js/file_manager.js View 1 2 3 4 5 6 1 chunk +1 line, -5 lines 0 comments Download
M chrome/test/data/chromeos/gdata/cached_feeds.json View 1 2 3 4 6 chunks +345 lines, -10 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
zel
working on unit test for orphaned feed elements...
8 years, 9 months ago (2012-03-24 23:42:02 UTC) #1
satorux1
http://codereview.chromium.org/9836086/diff/2001/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/9836086/diff/2001/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode1458 chrome/browser/chromeos/gdata/gdata_file_system.cc:1458: bool inital_read = false; nit: initial http://codereview.chromium.org/9836086/diff/2001/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode1467 chrome/browser/chromeos/gdata/gdata_file_system.cc:1467: if ...
8 years, 9 months ago (2012-03-25 00:22:26 UTC) #2
zel
https://chromiumcodereview.appspot.com/9836086/diff/2001/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): https://chromiumcodereview.appspot.com/9836086/diff/2001/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode1458 chrome/browser/chromeos/gdata/gdata_file_system.cc:1458: bool inital_read = false; On 2012/03/25 00:22:26, satorux1 wrote: ...
8 years, 9 months ago (2012-03-25 02:06:41 UTC) #3
Ben Chan
lgtm
8 years, 9 months ago (2012-03-25 02:21:32 UTC) #4
zel
http://codereview.chromium.org/9836086/diff/2001/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/9836086/diff/2001/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode1999 chrome/browser/chromeos/gdata/gdata_file_system.cc:1999: scoped_ptr<GDataRootDirectory> orphans(new GDataRootDirectory(NULL)); On 2012/03/25 02:06:41, zel wrote: > ...
8 years, 9 months ago (2012-03-25 03:22:10 UTC) #5
satorux1
LGTM http://codereview.chromium.org/9836086/diff/2008/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/9836086/diff/2008/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode1469 chrome/browser/chromeos/gdata/gdata_file_system.cc:1469: // batch of content feed, we might want ...
8 years, 9 months ago (2012-03-25 17:28:27 UTC) #6
zel
8 years, 9 months ago (2012-03-25 17:39:20 UTC) #7
http://codereview.chromium.org/9836086/diff/2008/chrome/browser/chromeos/gdat...
File chrome/browser/chromeos/gdata/gdata_file_system.cc (right):

http://codereview.chromium.org/9836086/diff/2008/chrome/browser/chromeos/gdat...
chrome/browser/chromeos/gdata/gdata_file_system.cc:1469: // batch of content
feed, we might want to update |root_| content and report
On 2012/03/25 17:28:27, satorux1 wrote:
> nit: to make it very clear, we might want to describe the motivation here.
> 
> initial batch of content feed so that we can show the initial set of files to
> the user as soon as the first chunk arrives, rather than waiting for the last
> chunk to arrive (this can take quite some time if the user has 25K files for
> instance).

Done.

Powered by Google App Engine
This is Rietveld 408576698