Add an extension override bubble and warning box for proxy extensions. (2nd attempt...
[chromium-blink-merge.git] / google_apis / drive / task_util.cc
blob420afacb8444ebeff9cfa904a2b089bbd2b0d9a8
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
3 // found in the LICENSE file.
5 #include "google_apis/drive/task_util.h"
7 #include "base/location.h"
9 namespace google_apis {
11 void RunTaskOnThread(scoped_refptr<base::SequencedTaskRunner> task_runner,
12 const base::Closure& task) {
13 if (task_runner->RunsTasksOnCurrentThread()) {
14 task.Run();
15 } else {
16 const bool posted = task_runner->PostTask(FROM_HERE, task);
17 DCHECK(posted);
21 } // namespace google_apis