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

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

Issue 11418127: Pass calls to GetDocuments through the scheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 1 month 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_file_system.cc
diff --git a/chrome/browser/chromeos/drive/drive_file_system.cc b/chrome/browser/chromeos/drive/drive_file_system.cc
index 8a720ebaabf0e2b30237d28f7fde053cb777c653..e0818e9a97ae3cd606c196f67528cc28d9d7aff2 100644
--- a/chrome/browser/chromeos/drive/drive_file_system.cc
+++ b/chrome/browser/chromeos/drive/drive_file_system.cc
@@ -305,7 +305,9 @@ DriveFileSystem::DriveFileSystem(
last_update_check_error_(DRIVE_FILE_OK),
hide_hosted_docs_(false),
blocking_task_runner_(blocking_task_runner),
- scheduler_(new DriveScheduler(profile, &drive_operations_)),
+ scheduler_(new DriveScheduler(profile,
+ drive_service,
+ &drive_operations_)),
polling_interval_sec_(kFastPollingIntervalInSec),
push_notification_enabled_(false),
ALLOW_THIS_IN_INITIALIZER_LIST(ui_weak_ptr_factory_(this)),
@@ -343,6 +345,7 @@ void DriveFileSystem::ResetResourceMetadata() {
resource_metadata_.reset(new DriveResourceMetadata);
feed_loader_.reset(new DriveFeedLoader(resource_metadata_.get(),
drive_service_,
+ scheduler_.get(),
webapps_registry_,
cache_,
blocking_task_runner_));

Powered by Google App Engine
This is Rietveld 408576698