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

Issue 10837201: Pass parsed ChangeList to GDataFileSystem. (Closed)

Created:
8 years, 4 months ago by kochi
Modified:
8 years, 4 months ago
Reviewers:
satorux1
CC:
chromium-reviews, achuith+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, hashimoto, Daniel Erat
Visibility:
Public.

Description

Pass parsed ChangeList to GDataFileSystem. Get ChangeList using Drive V2 API and then converts to DocumentFeed. This is not optimal but change can be minimal to make file list appear in FileBrowser UI, which makes other development/debugging/refactoring easier. This depends on the change in https://chromiumcodereview.appspot.com/10837201/ for GetKind() function. BUG=chromium:127728 TEST=specify "--enable-drive-v2-api" and open file browser (Ctrl-M), then go to drive folder and see if file listing works. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151445

Patch Set 1 #

Patch Set 2 : . #

Total comments: 14

Patch Set 3 : Fix for comment.s #

Patch Set 4 : Split drive_api_parser.* part. #

Total comments: 2

Patch Set 5 : Calling OnNotifyDocumentFeedFetched() to make UI smoother. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -1 line) Patch
M chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc View 1 2 3 4 3 chunks +143 lines, -1 line 2 comments Download
M chrome/browser/chromeos/gdata/gdata_wapi_parser.h View 1 2 3 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_wapi_parser.cc View 1 2 3 chunks +95 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
kochi
Hi Satoru, As I understand it is not an optimal to convert Drive API ChangeList ...
8 years, 4 months ago (2012-08-10 09:44:20 UTC) #1
satorux1
http://codereview.chromium.org/10837201/diff/4001/chrome/browser/chromeos/gdata/drive_api_parser.cc File chrome/browser/chromeos/gdata/drive_api_parser.cc (right): http://codereview.chromium.org/10837201/diff/4001/chrome/browser/chromeos/gdata/drive_api_parser.cc#newcode461 chrome/browser/chromeos/gdata/drive_api_parser.cc:461: return DocumentEntry::FILE; I think the changes in drive_api_parser.h/cc can ...
8 years, 4 months ago (2012-08-10 18:14:34 UTC) #2
kochi
Thanks for the review! I split the drive_api_parser part in a separate CL: https://chromiumcodereview.appspot.com/10828277/ https://chromiumcodereview.appspot.com/10837201/diff/4001/chrome/browser/chromeos/gdata/drive_api_parser.cc ...
8 years, 4 months ago (2012-08-13 09:08:39 UTC) #3
satorux1
http://codereview.chromium.org/10837201/diff/7002/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc File chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc (right): http://codereview.chromium.org/10837201/diff/7002/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc#newcode763 chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc:763: } In OnGetDocuments, OnNotifyDocumentFeedFetched() is called, but OnNotifyDocumentFeedFetched() is ...
8 years, 4 months ago (2012-08-13 17:05:43 UTC) #4
kochi
https://chromiumcodereview.appspot.com/10837201/diff/7002/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc File chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc (right): https://chromiumcodereview.appspot.com/10837201/diff/7002/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc#newcode763 chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc:763: } On 2012/08/13 17:05:43, satorux1 wrote: > In OnGetDocuments, ...
8 years, 4 months ago (2012-08-14 02:09:19 UTC) #5
satorux1
http://codereview.chromium.org/10837201/diff/2010/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc File chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc (right): http://codereview.chromium.org/10837201/diff/2010/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc#newcode343 chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc:343: if (!callback.is_null()) { BTW, could you check if it's ...
8 years, 4 months ago (2012-08-14 06:02:45 UTC) #6
satorux1
Please update the TEST= line and describe how to test this feature. You also tested ...
8 years, 4 months ago (2012-08-14 06:05:25 UTC) #7
kochi
Updated the description. For checking callback.is_null, I'll work on another CL. https://chromiumcodereview.appspot.com/10837201/diff/2010/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc File chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc (right): ...
8 years, 4 months ago (2012-08-14 07:16:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kochi@chromium.org/10837201/2010
8 years, 4 months ago (2012-08-14 07:22:22 UTC) #9
commit-bot: I haz the power
Change committed as 151445
8 years, 4 months ago (2012-08-14 09:46:58 UTC) #10
satorux1
8 years, 4 months ago (2012-08-15 00:57:31 UTC) #11

On Tue, Aug 14, 2012 at 12:16 AM, <kochi@chromium.org> wrote:


> Updated the description.

> For checking callback.is_null, I'll work on another CL.


Please don't do this. I've already done that:
http://codereview.chromium.org/10824303/





> https://chromiumcodereview.**appspot.com/10837201/diff/**
>
2010/chrome/browser/chromeos/**gdata/gdata_wapi_feed_loader.**cc<https://chromiumcodereview.appspot.com/10837201/diff/2010/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc>
> File chrome/browser/chromeos/gdata/**gdata_wapi_feed_loader.cc (right):

> https://chromiumcodereview.**appspot.com/10837201/diff/**
> 2010/chrome/browser/chromeos/**gdata/gdata_wapi_feed_loader.**
>
cc#newcode343<https://chromiumcodereview.appspot.com/10837201/diff/2010/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc#newcode343>
> chrome/browser/chromeos/gdata/**gdata_wapi_feed_loader.cc:343: if
> (!callback.is_null()) {
> Ok, I'll examine these checks in a separate CL.


> On 2012/08/14 06:02:45, satorux1 wrote:

>> BTW, could you check if it's safe to remove this check? If all callers

> of the

>> class are always passing non-null callback, we can eliminate checks

> like this,

>> and instead add DCHECK(!callback.is_null()). Please do this in a

> separate patch.

>   See also http://crbug.com/126634


>
https://chromiumcodereview.**appspot.com/10837201/<https://chromiumcodereview...


Powered by Google App Engine
This is Rietveld 408576698