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

Side by Side Diff: mojo/services/files/c/lib/util.cc

Issue 1388413005: Move //mojo/services/X/public/... to //mojo/services/X/... (part 1). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « mojo/services/files/c/lib/util.h ('k') | mojo/services/files/c/mojio_config.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "files/public/c/lib/util.h" 5 #include "files/c/lib/util.h"
6 6
7 #include <assert.h> 7 #include <assert.h>
8 #include <errno.h> 8 #include <errno.h>
9 9
10 namespace mojio { 10 namespace mojio {
11 11
12 int ErrorToErrno(mojo::files::Error error) { 12 int ErrorToErrno(mojo::files::Error error) {
13 switch (error) { 13 switch (error) {
14 // TODO(vtl): Real errno encodings.... 14 // TODO(vtl): Real errno encodings....
15 case mojo::files::Error::OK: 15 case mojo::files::Error::OK:
(...skipping 20 matching lines...) Expand all
36 case mojo::files::Error::INTERNAL: 36 case mojo::files::Error::INTERNAL:
37 // TODO(vtl): Something better? 37 // TODO(vtl): Something better?
38 return EIO; 38 return EIO;
39 } 39 }
40 assert(false); 40 assert(false);
41 // TODO(vtl): Something better? 41 // TODO(vtl): Something better?
42 return EIO; 42 return EIO;
43 } 43 }
44 44
45 } // namespace mojio 45 } // namespace mojio
OLDNEW
« no previous file with comments | « mojo/services/files/c/lib/util.h ('k') | mojo/services/files/c/mojio_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698