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

Unified Diff: chrome_frame/test_utils.cc

Issue 1689012: Move common code into process_util.cc (Closed)
Patch Set: More fixes Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/chrome_process_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test_utils.cc
diff --git a/chrome_frame/test_utils.cc b/chrome_frame/test_utils.cc
index 319aa5458ad5d555e32a1f330bf8fc6ec0899416..e1377c7c5f308cd90048241ddb7f56f23a2ff1b6 100644
--- a/chrome_frame/test_utils.cc
+++ b/chrome_frame/test_utils.cc
@@ -244,10 +244,10 @@ class ArgumentFilter : public base::ProcessFilter {
// Returns true to indicate set-inclusion and false otherwise. This method
// should not have side-effects and should be idempotent.
- virtual bool Includes(base::ProcessId pid, base::ProcessId parent_pid) const {
+ virtual bool Includes(const base::ProcessEntry& entry) const {
bool found = false;
std::wstring command_line;
- if (GetCommandLineForProcess(pid, &command_line)) {
+ if (GetCommandLineForProcess(entry.pid(), &command_line)) {
std::wstring::const_iterator it =
std::search(command_line.begin(),
command_line.end(),
« no previous file with comments | « chrome/test/chrome_process_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698