Index: chrome/browser/sync_file_system/drive_backend/register_app_task.cc |
diff --git a/chrome/browser/sync_file_system/drive_backend/register_app_task.cc b/chrome/browser/sync_file_system/drive_backend/register_app_task.cc |
index 74881d241b0e8a69753e6704cae66b1239e14e00..9ab0bd5a309d1e14a7de0970984e757ec8d86579 100644 |
--- a/chrome/browser/sync_file_system/drive_backend/register_app_task.cc |
+++ b/chrome/browser/sync_file_system/drive_backend/register_app_task.cc |
@@ -168,8 +168,9 @@ bool RegisterAppTask::FilterCandidates(const TrackerIDSet& trackers, |
void RegisterAppTask::RegisterAppIntoDatabase( |
const FileTracker& tracker, |
const SyncStatusCallback& callback) { |
- metadata_database()->RegisterApp( |
- app_id_, tracker.file_id(), callback); |
+ SyncStatusCode status = |
+ metadata_database()->RegisterApp(app_id_, tracker.file_id()); |
+ callback.Run(status); |
} |
MetadataDatabase* RegisterAppTask::metadata_database() { |