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

Unified Diff: chrome/browser/chromeos/drive/drive_scheduler.cc

Issue 13448003: Narrow the ownership of DriveUploader from DriveSystemService to DriveScheduler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 9 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
Index: chrome/browser/chromeos/drive/drive_scheduler.cc
diff --git a/chrome/browser/chromeos/drive/drive_scheduler.cc b/chrome/browser/chromeos/drive/drive_scheduler.cc
index 9c9cd76efae7d53e052f40b3085062a0ae418ab7..457e2fbe859e0fc57eb346875753aebb26578957 100644
--- a/chrome/browser/chromeos/drive/drive_scheduler.cc
+++ b/chrome/browser/chromeos/drive/drive_scheduler.cc
@@ -57,13 +57,12 @@ bool DriveScheduler::QueueEntry::Compare(
DriveScheduler::DriveScheduler(
Profile* profile,
- google_apis::DriveServiceInterface* drive_service,
- google_apis::DriveUploaderInterface* uploader)
+ google_apis::DriveServiceInterface* drive_service)
: next_job_id_(0),
throttle_count_(0),
disable_throttling_(false),
drive_service_(drive_service),
- uploader_(uploader),
+ uploader_(new google_apis::DriveUploader(drive_service)),
profile_(profile),
initialized_(false),
weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
« no previous file with comments | « chrome/browser/chromeos/drive/drive_scheduler.h ('k') | chrome/browser/chromeos/drive/drive_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698