Commit d0fa9a52 authored by hidehiko@chromium.org's avatar hidehiko@chromium.org

Fix next page fetching failure.

As we switched FastFetch back to GData WAPI, but fetching next page on r221196
mistakenly keep using Drive API v2's one. This CL fixes it.

BUG=283622
TEST=Ran unit_tests and tested manually.

Review URL: https://chromiumcodereview.appspot.com/23647010

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221690 0039d316-1c4b-4281-b951-d872f2087c98
parent dc3d06e0
......@@ -242,11 +242,11 @@ class FastFetchFeedFetcher : public ChangeListLoader::FeedFetcher {
scheduler_->GetResourceListInDirectoryByWapi(
resource_id,
base::Bind(&FastFetchFeedFetcher::OnFileListFetched,
base::Bind(&FastFetchFeedFetcher::OnResourceListFetched,
weak_ptr_factory_.GetWeakPtr(), callback));
}
void OnFileListFetched(
void OnResourceListFetched(
const FeedFetcherCallback& callback,
google_apis::GDataErrorCode status,
scoped_ptr<google_apis::ResourceList> resource_list) {
......@@ -269,9 +269,9 @@ class FastFetchFeedFetcher : public ChangeListLoader::FeedFetcher {
GURL next_url;
if (resource_list->GetNextFeedURL(&next_url) && !next_url.is_empty()) {
// There is the remaining result so fetch it.
scheduler_->GetRemainingFileList(
scheduler_->GetRemainingResourceList(
next_url,
base::Bind(&FastFetchFeedFetcher::OnFileListFetched,
base::Bind(&FastFetchFeedFetcher::OnResourceListFetched,
weak_ptr_factory_.GetWeakPtr(), callback));
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment