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

Issue 10824303: gdata: Remove FindEntryByPathAndRunSync() from GDataWapiFeedLoader. (Closed)

Created:
8 years, 4 months ago by satorux1
Modified:
8 years, 4 months ago
Reviewers:
achuithb
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

gdata: Remove FindEntryByPathAndRunSync() from GDataWapiFeedLoader. GDataWapiFeedLoader sould only focus on loading the feeds, without doing the extra step to find an entry. The number of callers of FindEntryByPathAndRunSync() is reduced from 4 to 2. Along the way, make LoadDocumentFeedCallback parameter mandatory for LoadFromServer() and friends. Looking at callers, it's safe to make this mandatory. BUG=141196, 126634 TEST=file manager works as before (loading from the server and from the cache) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151654

Patch Set 1 #

Total comments: 11

Patch Set 2 : address comments #

Total comments: 6

Patch Set 3 : rebase #

Patch Set 4 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -133 lines) Patch
M chrome/browser/chromeos/gdata/gdata_file_system.h View 1 2 2 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.cc View 1 2 3 7 chunks +19 lines, -24 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.h View 1 8 chunks +28 lines, -26 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc View 1 2 3 31 chunks +41 lines, -76 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
satorux1
8 years, 4 months ago (2012-08-14 23:17:07 UTC) #1
achuithb
http://codereview.chromium.org/10824303/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10824303/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode2851 chrome/browser/chromeos/gdata/gdata_file_system.cc:2851: directory_service_->FindEntryByPathAndRunSync(search_file_path, callback); Why not just fix this? It's easy, ...
8 years, 4 months ago (2012-08-14 23:57:36 UTC) #2
satorux1
http://codereview.chromium.org/10824303/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc File chrome/browser/chromeos/gdata/gdata_file_system.cc (right): http://codereview.chromium.org/10824303/diff/1/chrome/browser/chromeos/gdata/gdata_file_system.cc#newcode2851 chrome/browser/chromeos/gdata/gdata_file_system.cc:2851: directory_service_->FindEntryByPathAndRunSync(search_file_path, callback); On 2012/08/14 23:57:36, achuith.bhandarkar wrote: > Why ...
8 years, 4 months ago (2012-08-15 00:03:26 UTC) #3
achuithb
http://codereview.chromium.org/10824303/diff/1/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc File chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc (right): http://codereview.chromium.org/10824303/diff/1/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc#newcode868 chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc:868: FileOperationCallback callback = params->callback; On 2012/08/14 23:57:36, achuith.bhandarkar wrote: ...
8 years, 4 months ago (2012-08-15 00:13:15 UTC) #4
satorux1
I'm already on a bus. If there are no other comments, please lgtm so I ...
8 years, 4 months ago (2012-08-15 00:26:29 UTC) #5
achuithb
lgtm
8 years, 4 months ago (2012-08-15 00:41:48 UTC) #6
achuithb
http://codereview.chromium.org/10824303/diff/1/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc File chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc (right): http://codereview.chromium.org/10824303/diff/1/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc#newcode868 chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc:868: FileOperationCallback callback = params->callback; On 2012/08/15 00:26:29, satorux1 wrote: ...
8 years, 4 months ago (2012-08-15 00:42:33 UTC) #7
satorux1
http://codereview.chromium.org/10824303/diff/1/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc File chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc (right): http://codereview.chromium.org/10824303/diff/1/chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc#newcode868 chrome/browser/chromeos/gdata/gdata_wapi_feed_loader.cc:868: FileOperationCallback callback = params->callback; On 2012/08/15 00:42:33, achuith.bhandarkar wrote: ...
8 years, 4 months ago (2012-08-15 01:26:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/satorux@chromium.org/10824303/1007
8 years, 4 months ago (2012-08-15 02:08:52 UTC) #9
commit-bot: I haz the power
8 years, 4 months ago (2012-08-15 04:27:18 UTC) #10
Change committed as 151654

Powered by Google App Engine
This is Rietveld 408576698