diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 15:01:12 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-03 15:01:12 +0000 |
commit | 52a261f59b20e89f8c5936bce642362f8e367b57 (patch) | |
tree | fcc7b3c100caaf43848cd9a241beafc883f93b7d /base/process_util_mac.mm | |
parent | 7d926f9072ac496db6df715cc6a6bd5d3f9bd011 (diff) | |
download | chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.zip chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.tar.gz chromium_src-52a261f59b20e89f8c5936bce642362f8e367b57.tar.bz2 |
NO CODE CHANGE (except one global std::wstring changed to const wchar_t* const per style compliance).
Preliminary work to enforce new PRESUBMIT.py rules:
- <=80 cols
- no trailing whitespaces
- svn:eol-style=LF
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10791 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_mac.mm')
-rw-r--r-- | base/process_util_mac.mm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/base/process_util_mac.mm b/base/process_util_mac.mm index de9cddf..f90070b 100644 --- a/base/process_util_mac.mm +++ b/base/process_util_mac.mm @@ -93,7 +93,7 @@ bool LaunchApp(const CommandLine& cl, } NamedProcessIterator::NamedProcessIterator(const std::wstring& executable_name, - const ProcessFilter* filter) + const ProcessFilter* filter) : executable_name_(executable_name), index_of_kinfo_proc_(0), filter_(filter) { @@ -102,7 +102,7 @@ NamedProcessIterator::NamedProcessIterator(const std::wstring& executable_name, // impossible. int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_UID, geteuid() }; - + // Since more processes could start between when we get the size and when // we get the list, we do a loop to keep trying until we get it. bool done = false; @@ -119,7 +119,7 @@ NamedProcessIterator::NamedProcessIterator(const std::wstring& executable_name, size_t num_of_kinfo_proc = len / sizeof(struct kinfo_proc); // Leave some spare room for process table growth (more could show up // between when we check and now) - num_of_kinfo_proc += 4; + num_of_kinfo_proc += 4; kinfo_procs_.resize(num_of_kinfo_proc); len = num_of_kinfo_proc * sizeof(struct kinfo_proc); // Load the list of processes @@ -139,7 +139,7 @@ NamedProcessIterator::NamedProcessIterator(const std::wstring& executable_name, } } } while (!done && (try_num++ < max_tries)); - + if (!done) { LOG(ERROR) << "failed to collect the process list in a few tries"; kinfo_procs_.resize(0); @@ -154,7 +154,7 @@ const ProcessEntry* NamedProcessIterator::NextProcessEntry() { do { result = CheckForNextProcess(); } while (result && !IncludeEntry()); - + if (result) { return &entry_; } |