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

Unified Diff: components/drive/job_scheduler.cc

Issue 2910913002: WIP.
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/drive/job_scheduler.h ('k') | components/drive/job_scheduler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/drive/job_scheduler.cc
diff --git a/components/drive/job_scheduler.cc b/components/drive/job_scheduler.cc
index aad7b842b77478b4ba7627526cc0549fabfd9a65..6646e716b25fb8e69596b9c815dcb09f2fd36305 100644
--- a/components/drive/job_scheduler.cc
+++ b/components/drive/job_scheduler.cc
@@ -317,20 +317,19 @@ void JobScheduler::GetAllFileList(
void JobScheduler::GetFileListInDirectory(
const std::string& directory_resource_id,
+ const std::string& team_drive_id,
const google_apis::FileListCallback& callback) {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(!callback.is_null());
JobEntry* new_job = CreateNewJob(
TYPE_GET_RESOURCE_LIST_IN_DIRECTORY);
- new_job->task = base::Bind(
- &DriveServiceInterface::GetFileListInDirectory,
- base::Unretained(drive_service_),
- directory_resource_id,
- base::Bind(&JobScheduler::OnGetFileListJobDone,
- weak_ptr_factory_.GetWeakPtr(),
- new_job->job_info.job_id,
- callback));
+ new_job->task = base::Bind(&DriveServiceInterface::GetFileListInDirectory,
+ base::Unretained(drive_service_),
+ directory_resource_id, team_drive_id,
+ base::Bind(&JobScheduler::OnGetFileListJobDone,
+ weak_ptr_factory_.GetWeakPtr(),
+ new_job->job_info.job_id, callback));
new_job->abort_callback = CreateErrorRunCallback(callback);
StartJob(new_job);
}
« no previous file with comments | « components/drive/job_scheduler.h ('k') | components/drive/job_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698