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

Unified Diff: test/win/win_child_process.cc

Issue 1405093013: win: Lower integrity level of connection pipe (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | util/util.gyp » ('j') | util/win/exception_handler_server.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | util/util.gyp » ('j') | util/win/exception_handler_server.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698