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

Side by Side Diff: mojo/file_utils/file_util.cc

Issue 1915193002: Simplify the organization of //mojo_file_utils. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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/file_utils/BUILD.gn ('k') | mojo/file_utils/file_util_unittest.cc » ('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 "mojo/file_utils/file_util.h" 5 #include "mojo/file_utils/file_util.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "mojo/services/files/interfaces/directory.mojom.h" 9 #include "mojo/services/files/interfaces/directory.mojom.h"
10 #include "mojo/services/files/interfaces/file.mojom.h" 10 #include "mojo/services/files/interfaces/file.mojom.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // other than Error::UNKNOWN. We only want to retry when "EEXIST" is thrown. 43 // other than Error::UNKNOWN. We only want to retry when "EEXIST" is thrown.
44 if (error == mojo::files::Error::OK) { 44 if (error == mojo::files::Error::OK) {
45 *path_name = internal_path_name; 45 *path_name = internal_path_name;
46 return temp_file; 46 return temp_file;
47 } 47 }
48 } 48 }
49 return nullptr; 49 return nullptr;
50 } 50 }
51 51
52 } // namespace file_utils 52 } // namespace file_utils
OLDNEW
« no previous file with comments | « mojo/file_utils/BUILD.gn ('k') | mojo/file_utils/file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698