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

Side by Side Diff: base/process_posix.cc

Issue 10739: More Mac & Linux fixes for base namespaces. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | « no previous file | base/process_util_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) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008 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.h" 5 #include "base/process.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/process_util.h" 7 #include "base/process_util.h"
8 8
9 namespace base { 9 namespace base {
10 10
(...skipping 26 matching lines...) Expand all
37 37
38 bool Process::EmptyWorkingSet() { 38 bool Process::EmptyWorkingSet() {
39 NOTIMPLEMENTED(); 39 NOTIMPLEMENTED();
40 return false; 40 return false;
41 } 41 }
42 42
43 int32 Process::pid() const { 43 int32 Process::pid() const {
44 if (process_ == 0) 44 if (process_ == 0)
45 return 0; 45 return 0;
46 46
47 return process_util::GetProcId(process_); 47 return GetProcId(process_);
48 } 48 }
49 49
50 bool Process::is_current() const { 50 bool Process::is_current() const {
51 return process_ == process_util::GetCurrentProcessHandle(); 51 return process_ == GetCurrentProcessHandle();
52 } 52 }
53 53
54 // static 54 // static
55 Process Process::Current() { 55 Process Process::Current() {
56 return Process(process_util::GetCurrentProcessHandle()); 56 return Process(GetCurrentProcessHandle());
57 } 57 }
58 58
59 } // namspace base 59 } // namspace base
OLDNEW
« no previous file with comments | « no previous file | base/process_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698