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

Unified Diff: chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service.cc

Issue 334053008: [SyncFS] Make task invocation in SyncTaskRunner async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « chrome/browser/sync_file_system/drive_backend/sync_worker.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service.cc
diff --git a/chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service.cc b/chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service.cc
index 1984d65a5dcc09efef35cc5b746fc6f619a71494..dffc6dcc4c7d3d4274a34ac6fb11b26243d1ef30 100644
--- a/chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service.cc
@@ -76,7 +76,8 @@ scoped_ptr<DriveFileSyncService> DriveFileSyncService::Create(
scoped_ptr<DriveFileSyncService> service(new DriveFileSyncService(profile));
scoped_ptr<drive_backend::SyncTaskManager> task_manager(
new drive_backend::SyncTaskManager(service->AsWeakPtr(),
- 0 /* maximum_background_task */));
+ 0 /* maximum_background_task */,
+ base::MessageLoopProxy::current()));
SyncStatusCallback callback = base::Bind(
&drive_backend::SyncTaskManager::Initialize, task_manager->AsWeakPtr());
service->Initialize(task_manager.Pass(), callback);
@@ -100,7 +101,8 @@ scoped_ptr<DriveFileSyncService> DriveFileSyncService::CreateForTesting(
scoped_ptr<DriveFileSyncService> service(new DriveFileSyncService(profile));
scoped_ptr<drive_backend::SyncTaskManager> task_manager(
new drive_backend::SyncTaskManager(service->AsWeakPtr(),
- 0 /* maximum_background_task */));
+ 0 /* maximum_background_task */,
+ base::MessageLoopProxy::current()));
SyncStatusCallback callback = base::Bind(
&drive_backend::SyncTaskManager::Initialize, task_manager->AsWeakPtr());
service->InitializeForTesting(task_manager.Pass(),
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend/sync_worker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698