Index: third_party/crashpad/crashpad/util/posix/scoped_dir.cc |
diff --git a/third_party/crashpad/crashpad/minidump/minidump_user_extension_stream_data_source.cc b/third_party/crashpad/crashpad/util/posix/scoped_dir.cc |
similarity index 60% |
copy from third_party/crashpad/crashpad/minidump/minidump_user_extension_stream_data_source.cc |
copy to third_party/crashpad/crashpad/util/posix/scoped_dir.cc |
index 8056011cf021b0cccafdbcf6286caf9e0f70ed5a..555900a31a2f0656ce75d813a8522371ad02f61f 100644 |
--- a/third_party/crashpad/crashpad/minidump/minidump_user_extension_stream_data_source.cc |
+++ b/third_party/crashpad/crashpad/util/posix/scoped_dir.cc |
@@ -12,19 +12,19 @@ |
// See the License for the specific language governing permissions and |
// limitations under the License. |
-#include "minidump/minidump_user_extension_stream_data_source.h" |
+#include "util/posix/scoped_dir.h" |
-namespace crashpad { |
+#include "base/logging.h" |
+#include "base/posix/eintr_wrapper.h" |
-MinidumpUserExtensionStreamDataSource::MinidumpUserExtensionStreamDataSource( |
- uint32_t stream_type, |
- const void* buffer, |
- size_t buffer_size) |
- : stream_type_(static_cast<MinidumpStreamType>(stream_type)), |
- buffer_(buffer), |
- buffer_size_(buffer_size) {} |
+namespace crashpad { |
+namespace internal { |
-MinidumpUserExtensionStreamDataSource:: |
- ~MinidumpUserExtensionStreamDataSource() {} |
+void ScopedDIRCloser::operator()(DIR* dir) const { |
+ if (dir && IGNORE_EINTR(closedir(dir)) != 0) { |
+ PLOG(ERROR) << "closedir"; |
+ } |
+} |
+} // namespace internal |
} // namespace crashpad |