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 "chromecast/base/error_codes.h" | 5 #include "chromecast/base/error_codes.h" |
6 | 6 |
| 7 #include <errno.h> |
7 #include <fcntl.h> | 8 #include <fcntl.h> |
8 | 9 |
9 #include <string> | 10 #include <string> |
10 | 11 |
11 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
12 #include "base/logging.h" | 13 #include "base/logging.h" |
13 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
14 #include "chromecast/base/path_utils.h" | 15 #include "chromecast/base/path_utils.h" |
15 | 16 |
16 namespace chromecast { | 17 namespace chromecast { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 75 |
75 // Remove initial error file if no error. | 76 // Remove initial error file if no error. |
76 if (unlink(error_file_path.c_str()) == 0 || errno == ENOENT) | 77 if (unlink(error_file_path.c_str()) == 0 || errno == ENOENT) |
77 return true; | 78 return true; |
78 | 79 |
79 PLOG(ERROR) << "Failed to remove error file"; | 80 PLOG(ERROR) << "Failed to remove error file"; |
80 return false; | 81 return false; |
81 } | 82 } |
82 | 83 |
83 } // namespace chromecast | 84 } // namespace chromecast |
OLD | NEW |