| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |