[go: nahoru, domu]

blob: b9259cb53fde098218cc5956e6d47d25860190f5 [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "google_apis/common/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