OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/sync_file_system/drive_backend/callback_helper.h" | |
6 | |
7 namespace sync_file_system { | |
8 namespace drive_backend { | |
9 | |
10 namespace internal { | |
peria
2014/04/24 02:38:21
anonymous namespace?
tzik
2014/04/24 06:56:55
Refactored.
| |
11 | |
12 void RelayToTaskRunner0(base::SequencedTaskRunner* task_runner, | |
13 const tracked_objects::Location& from_here, | |
14 const base::Callback<void()>& callback) { | |
15 task_runner->PostTask( | |
16 from_here, base::Bind(callback)); | |
17 } | |
18 | |
19 } | |
20 | |
21 base::Callback<void()> CreateRelayedCallback( | |
22 const base::Callback<void()>& callback) { | |
23 return base::Bind(&internal::RelayToTaskRunner0, | |
24 base::MessageLoopProxy::current(), | |
25 FROM_HERE, | |
26 callback); | |
27 } | |
28 | |
29 } // namespace drive_backend | |
30 } // namespace sync_file_system | |
OLD | NEW |