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

Side by Side Diff: google_apis/drive/task_util.cc

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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
« no previous file with comments | « google_apis/drive/task_util.h ('k') | google_apis/drive/test_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/google_apis/task_util.h" 5 #include "google_apis/drive/task_util.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 8
9 namespace google_apis { 9 namespace google_apis {
10 10
11 void RunTaskOnThread(scoped_refptr<base::SingleThreadTaskRunner> task_runner, 11 void RunTaskOnThread(scoped_refptr<base::SingleThreadTaskRunner> task_runner,
12 const base::Closure& task) { 12 const base::Closure& task) {
13 if (task_runner->BelongsToCurrentThread()) { 13 if (task_runner->BelongsToCurrentThread()) {
14 task.Run(); 14 task.Run();
15 } else { 15 } else {
16 const bool posted = task_runner->PostTask(FROM_HERE, task); 16 const bool posted = task_runner->PostTask(FROM_HERE, task);
17 DCHECK(posted); 17 DCHECK(posted);
18 } 18 }
19 } 19 }
20 20
21 } // namespace google_apis 21 } // namespace google_apis
OLDNEW
« no previous file with comments | « google_apis/drive/task_util.h ('k') | google_apis/drive/test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698