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

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

Issue 13047011: SyncFS: Do not dereference scoped_ptr<Param> after we pass in StartOverRemoteSync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | 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_file_sync_service.cc
diff --git a/chrome/browser/sync_file_system/drive_file_sync_service.cc b/chrome/browser/sync_file_system/drive_file_sync_service.cc
index 20f3bb4d5eb0707fd1305260e5ec832d14e6201a..264aefa57ffd94d97b7eb1acabe2e7d9dae9762c 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/drive_file_sync_service.cc
@@ -1928,12 +1928,8 @@ void DriveFileSyncService::StartOverRemoteSync(
SyncStatusCode status) {
DCHECK(param);
SyncFileMetadata& local_metadata = param->local_metadata;
- pending_tasks_.push_front(base::Bind(
- &DriveFileSyncService::DidPrepareForProcessRemoteChange,
- AsWeakPtr(), base::Passed(&param), status,
- local_metadata, FileChangeList()));
- param->token->ResetTask(FROM_HERE);
- NotifyTaskDone(status, param->token.Pass());
+ DidPrepareForProcessRemoteChange(
+ param.Pass(), status, local_metadata, FileChangeList());
}
bool DriveFileSyncService::AppendRemoteChange(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698