summaryrefslogtreecommitdiffstats
path: root/base/process_util.h
diff options
context:
space:
mode:
authorpvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-10 07:46:43 +0000
committerpvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-10 07:46:43 +0000
commit66700d449400266dbfc47c35e1e360efd57e4206 (patch)
tree6b9aa8447c726540bd5a90ea495eb6d12a8b5435 /base/process_util.h
parent62c68bee3e9ced3ba82100d04da274a0cf669f25 (diff)
downloadchromium_src-66700d449400266dbfc47c35e1e360efd57e4206.zip
chromium_src-66700d449400266dbfc47c35e1e360efd57e4206.tar.gz
chromium_src-66700d449400266dbfc47c35e1e360efd57e4206.tar.bz2
BSD port changes for base/ (OS_POSIX/GTK instead of OS_LINUX
where applicable, missing includes, etc) Review URL: http://codereview.chromium.org/774001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41143 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r--base/process_util.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/base/process_util.h b/base/process_util.h
index a368698..cf4bd01 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -478,16 +478,14 @@ class ProcessMetrics {
int64 last_time_;
int64 last_system_time_;
-#if defined(OS_LINUX)
- // Jiffie count at the last_time_ we updated.
- int last_cpu_;
-#endif
-
#if defined(OS_MACOSX)
// Queries the port provider if it's set.
mach_port_t TaskForPid(ProcessHandle process) const;
PortProvider* port_provider_;
+#elif defined(OS_POSIX)
+ // Jiffie count at the last_time_ we updated.
+ int last_cpu_;
#endif
DISALLOW_EVIL_CONSTRUCTORS(ProcessMetrics);