OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/test/test_process_killer_win.h" | 5 #include "base/test/test_process_killer_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <winternl.h> | 8 #include <winternl.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 protected: | 152 protected: |
153 string16 argument_to_find_; | 153 string16 argument_to_find_; |
154 }; | 154 }; |
155 | 155 |
156 } // namespace | 156 } // namespace |
157 | 157 |
158 namespace base { | 158 namespace base { |
159 | 159 |
160 bool KillAllNamedProcessesWithArgument(const string16& process_name, | 160 bool KillAllNamedProcessesWithArgument(const string16& process_name, |
161 const string16& argument) { | 161 const string16& argument) { |
162 return base::KillProcesses(process_name, 0, &ArgumentFilter(argument)); | 162 ArgumentFilter argument_filter(argument); |
| 163 return base::KillProcesses(process_name, 0, &argument_filter); |
163 } | 164 } |
164 | 165 |
165 } // namespace base | 166 } // namespace base |
OLD | NEW |