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

Unified Diff: snapshot/win/crashpad_snapshot_test_dump_without_crashing.cc

Issue 1406993008: win: Rename CrashpadClient::SetHandler() to SetHandlerIPCPipe() (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Revise comment 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 | « snapshot/win/crashpad_snapshot_test_crashing_child.cc ('k') | util/win/exception_handler_server_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/win/crashpad_snapshot_test_dump_without_crashing.cc
diff --git a/snapshot/win/crashpad_snapshot_test_dump_without_crashing.cc b/snapshot/win/crashpad_snapshot_test_dump_without_crashing.cc
index 1ecc18edf605c8c5fe873b4beb51658764b89d93..cf5ab9505cb8e37248aa01d68e08c34eee309e4d 100644
--- a/snapshot/win/crashpad_snapshot_test_dump_without_crashing.cc
+++ b/snapshot/win/crashpad_snapshot_test_dump_without_crashing.cc
@@ -20,15 +20,19 @@
#include "util/file/file_io.h"
#include "util/win/address_types.h"
+namespace {
+
__declspec(noinline) crashpad::WinVMAddress CurrentAddress() {
return reinterpret_cast<crashpad::WinVMAddress>(_ReturnAddress());
}
-int main(int argc, char* argv[]) {
+} // namespace
+
+int wmain(int argc, wchar_t* argv[]) {
CHECK_EQ(argc, 2);
crashpad::CrashpadClient client;
- CHECK(client.SetHandler(argv[1]));
+ CHECK(client.SetHandlerIPCPipe(argv[1]));
CHECK(client.UseHandler());
HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE);
« no previous file with comments | « snapshot/win/crashpad_snapshot_test_crashing_child.cc ('k') | util/win/exception_handler_server_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698