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

Side by Side Diff: base/process/process_iterator_openbsd.cc

Issue 16344006: Use a direct include of strings headers in base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « base/process/process_iterator_mac.cc ('k') | base/process/process_metrics_linux.cc » ('j') | 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/process/process_iterator.h" 5 #include "base/process/process_iterator.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <sys/sysctl.h> 8 #include <sys/sysctl.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/string_util.h" 11 #include "base/strings/string_util.h"
12 12
13 namespace base { 13 namespace base {
14 14
15 ProcessIterator::ProcessIterator(const ProcessFilter* filter) 15 ProcessIterator::ProcessIterator(const ProcessFilter* filter)
16 : index_of_kinfo_proc_(), 16 : index_of_kinfo_proc_(),
17 filter_(filter) { 17 filter_(filter) {
18 18
19 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, getuid(), 19 int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, getuid(),
20 sizeof(struct kinfo_proc), 0 }; 20 sizeof(struct kinfo_proc), 0 };
21 21
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 119 }
120 return false; 120 return false;
121 } 121 }
122 122
123 bool NamedProcessIterator::IncludeEntry() { 123 bool NamedProcessIterator::IncludeEntry() {
124 return (executable_name_ == entry().exe_file() && 124 return (executable_name_ == entry().exe_file() &&
125 ProcessIterator::IncludeEntry()); 125 ProcessIterator::IncludeEntry());
126 } 126 }
127 127
128 } // namespace base 128 } // namespace base
OLDNEW
« no previous file with comments | « base/process/process_iterator_mac.cc ('k') | base/process/process_metrics_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698