OLD | NEW |
1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 if (argc == 2) { | 99 if (argc == 2) { |
100 if (!client.SetHandlerIPCPipe(argv[1])) { | 100 if (!client.SetHandlerIPCPipe(argv[1])) { |
101 LOG(ERROR) << "SetHandler"; | 101 LOG(ERROR) << "SetHandler"; |
102 return EXIT_FAILURE; | 102 return EXIT_FAILURE; |
103 } | 103 } |
104 } else if (argc == 3) { | 104 } else if (argc == 3) { |
105 if (!client.StartHandler(base::FilePath(argv[1]), | 105 if (!client.StartHandler(base::FilePath(argv[1]), |
106 base::FilePath(argv[2]), | 106 base::FilePath(argv[2]), |
107 std::string(), | 107 std::string(), |
108 std::map<std::string, std::string>(), | 108 std::map<std::string, std::string>(), |
109 std::vector<std::string>())) { | 109 std::vector<std::string>(), |
| 110 false)) { |
110 LOG(ERROR) << "StartHandler"; | 111 LOG(ERROR) << "StartHandler"; |
111 return EXIT_FAILURE; | 112 return EXIT_FAILURE; |
112 } | 113 } |
113 } else { | 114 } else { |
114 fprintf(stderr, "Usage: %s <server_pipe_name>\n", argv[0]); | 115 fprintf(stderr, "Usage: %s <server_pipe_name>\n", argv[0]); |
115 fprintf(stderr, " %s <handler_path> <database_path>\n", argv[0]); | 116 fprintf(stderr, " %s <handler_path> <database_path>\n", argv[0]); |
116 return EXIT_FAILURE; | 117 return EXIT_FAILURE; |
117 } | 118 } |
118 | 119 |
119 if (!client.UseHandler()) { | 120 if (!client.UseHandler()) { |
(...skipping 12 matching lines...) Expand all Loading... |
132 | 133 |
133 return EXIT_SUCCESS; | 134 return EXIT_SUCCESS; |
134 } | 135 } |
135 | 136 |
136 } // namespace | 137 } // namespace |
137 } // namespace crashpad | 138 } // namespace crashpad |
138 | 139 |
139 int wmain(int argc, wchar_t* argv[]) { | 140 int wmain(int argc, wchar_t* argv[]) { |
140 return crashpad::CrashyMain(argc, argv); | 141 return crashpad::CrashyMain(argc, argv); |
141 } | 142 } |
OLD | NEW |