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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/callback_helper.cc

Issue 246163005: [SyncFS] Make ExtensionService usage of SyncWorker asynchronous (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: buildfix Created 6 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 | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698