summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-13 17:44:15 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-13 17:44:15 +0000
commitbbf94a3e7f3c4372c4ff918a6811a505d8fd69b9 (patch)
treec5d2614d92182544af89d3908be118149fae185a /base
parent372c8e90fba9881bdf52298587f336cc083e3b17 (diff)
downloadchromium_src-bbf94a3e7f3c4372c4ff918a6811a505d8fd69b9.zip
chromium_src-bbf94a3e7f3c4372c4ff918a6811a505d8fd69b9.tar.gz
chromium_src-bbf94a3e7f3c4372c4ff918a6811a505d8fd69b9.tar.bz2
FBTF: Fix more ctor/dtors found by clang plugin.
(1.2 megs off of Debug Linux .a files) BUG=none TEST=compiles everywhere Review URL: http://codereview.chromium.org/3743001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62420 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/process_util.cc5
-rw-r--r--base/process_util.h3
-rw-r--r--base/thread_checker.cc2
-rw-r--r--base/thread_checker.h1
4 files changed, 11 insertions, 0 deletions
diff --git a/base/process_util.cc b/base/process_util.cc
index f6e0d84..6293740 100644
--- a/base/process_util.cc
+++ b/base/process_util.cc
@@ -6,6 +6,11 @@
namespace base {
+#if defined(OS_POSIX)
+ProcessEntry::ProcessEntry() {}
+ProcessEntry::~ProcessEntry() {}
+#endif
+
int GetProcessCount(const std::wstring& executable_name,
const ProcessFilter* filter) {
int count = 0;
diff --git a/base/process_util.h b/base/process_util.h
index 38d96ec..77d772b 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -81,6 +81,9 @@ const uint32 kProcessAccessWaitForTermination = SYNCHRONIZE;
#elif defined(OS_POSIX)
struct ProcessEntry {
+ ProcessEntry();
+ ~ProcessEntry();
+
ProcessId pid_;
ProcessId ppid_;
ProcessId gid_;
diff --git a/base/thread_checker.cc b/base/thread_checker.cc
index 7a41a448..394a90a 100644
--- a/base/thread_checker.cc
+++ b/base/thread_checker.cc
@@ -11,6 +11,8 @@ ThreadChecker::ThreadChecker() {
EnsureThreadIdAssigned();
}
+ThreadChecker::~ThreadChecker() {}
+
bool ThreadChecker::CalledOnValidThread() const {
EnsureThreadIdAssigned();
return *valid_thread_id_ == PlatformThread::CurrentId();
diff --git a/base/thread_checker.h b/base/thread_checker.h
index 60b8474..5d5445e 100644
--- a/base/thread_checker.h
+++ b/base/thread_checker.h
@@ -35,6 +35,7 @@
class ThreadChecker {
public:
ThreadChecker();
+ ~ThreadChecker();
bool CalledOnValidThread() const;