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

Side by Side Diff: chrome/browser/sync_file_system/mock_local_change_processor.cc

Issue 2826943002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/sync_file_system (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync_file_system/mock_local_change_processor.h" 5 #include "chrome/browser/sync_file_system/mock_local_change_processor.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 16 matching lines...) Expand all
27 MockLocalChangeProcessor::~MockLocalChangeProcessor() { 27 MockLocalChangeProcessor::~MockLocalChangeProcessor() {
28 } 28 }
29 29
30 void MockLocalChangeProcessor::ApplyLocalChangeStub( 30 void MockLocalChangeProcessor::ApplyLocalChangeStub(
31 const FileChange& change, 31 const FileChange& change,
32 const base::FilePath& local_file_path, 32 const base::FilePath& local_file_path,
33 const SyncFileMetadata& local_file_metadata, 33 const SyncFileMetadata& local_file_metadata,
34 const storage::FileSystemURL& url, 34 const storage::FileSystemURL& url,
35 const SyncStatusCallback& callback) { 35 const SyncStatusCallback& callback) {
36 base::ThreadTaskRunnerHandle::Get()->PostTask( 36 base::ThreadTaskRunnerHandle::Get()->PostTask(
37 FROM_HERE, base::Bind(callback, SYNC_STATUS_OK)); 37 FROM_HERE, base::BindOnce(callback, SYNC_STATUS_OK));
38 } 38 }
39 39
40 } // namespace sync_file_system 40 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698