summaryrefslogtreecommitdiff
path: root/chromium/google_apis/drive/task_util.cc
blob: 1aae25f7ff6fe7b1409f3a8e9e8b73987e22d219 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "google_apis/drive/task_util.h"

#include "base/location.h"

namespace google_apis {

void RunTaskWithTaskRunner(scoped_refptr<base::TaskRunner> task_runner,
                           base::OnceClosure task) {
  const bool posted = task_runner->PostTask(FROM_HERE, std::move(task));
  DCHECK(posted);
}

}  // namespace google_apis