Commit 2141fe97 authored by kinuko@chromium.org's avatar kinuko@chromium.org

SyncFS: Do not dereference scoped_ptr<Param> after we pass in StartOverRemoteSync

We're keeping a token and going to call a method which takes token,
so we should probably just call the method there.

BUG=223705
TEST=manual
NOTRY=true


Review URL: https://chromiumcodereview.appspot.com/13047011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190509 0039d316-1c4b-4281-b951-d872f2087c98
parent 2ec02674
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment