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

Side by Side Diff: base/test/test_process_killer_win.cc

Issue 12926002: Fix clang warning in test_process_killer_win.cc re taking address of temporary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698