Index: test/win/win_child_process.cc |
diff --git a/test/win/win_child_process.cc b/test/win/win_child_process.cc |
index 7d179337277ecbf06cde175145fe66ff942d1674..4653f8e44a88ab3596b65650b0a551f14713d283 100644 |
--- a/test/win/win_child_process.cc |
+++ b/test/win/win_child_process.cc |
@@ -26,6 +26,7 @@ |
#include "util/stdlib/string_number_conversion.h" |
#include "util/string/split_string.h" |
#include "util/win/handle.h" |
+#include "util/win/scoped_local_free.h" |
#include "test/paths.h" |
namespace crashpad { |
@@ -34,15 +35,6 @@ namespace test { |
namespace { |
const char kIsMultiprocessChild[] = "--is-multiprocess-child"; |
-struct LocalFreeTraits { |
- static HLOCAL InvalidValue() { return nullptr; } |
- static void Free(HLOCAL mem) { |
- if (LocalFree(mem) != nullptr) |
- PLOG(ERROR) << "LocalFree"; |
- } |
-}; |
- |
-using ScopedLocalFree = base::ScopedGeneric<HLOCAL, LocalFreeTraits>; |
bool GetSwitch(const char* switch_name, std::string* value) { |
int num_args; |