diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-28 18:03:55 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-28 18:03:55 +0000 |
commit | 9ba8f8dd3bf0184eb46cb9f58e1560be1a789fe5 (patch) | |
tree | 6d9559338bc419fc6d665ed0dd5ab3721c436a65 /base | |
parent | e967b2de9ea805ef40840280eae686040b8a5c94 (diff) | |
download | chromium_src-9ba8f8dd3bf0184eb46cb9f58e1560be1a789fe5.zip chromium_src-9ba8f8dd3bf0184eb46cb9f58e1560be1a789fe5.tar.gz chromium_src-9ba8f8dd3bf0184eb46cb9f58e1560be1a789fe5.tar.bz2 |
Linux: remove --google-internal-crash-reporting.
It's time to kill this. It's been marginally useful, but only marginally.
http://codereview.chromium.org/222021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27375 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/scoped_fd.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/base/scoped_fd.h b/base/scoped_fd.h deleted file mode 100644 index 2837ff8..0000000 --- a/base/scoped_fd.h +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#if !defined(BASE_SCOPED_FD_H_) && defined(OS_POSIX) -#define BASE_SCOPED_FD_H_ - -#include "base/eintr_wrapper.h" - -// POSIX only -// -// A wrapper class for file descriptors which automatically closes them when -// they go out of scope: -// ScopedFd fd(open("/tmp/file", O_RDONLY)); -// read(fd.get(), ...); -class ScopedFd { - public: - ScopedFd() - : fd_(-1) { } - - explicit ScopedFd(int fd) - : fd_(fd) { } - - ~ScopedFd() { - Close(); - } - - void Close() { - if (fd_ >= 0) { - HANDLE_EINTR(close(fd_)); - fd_ = -1; - } - } - - int get() const { return fd_; } - - int Take() { - const int temp = fd_; - fd_ = -1; - return temp; - } - - void Set(int new_fd) { - Close(); - fd_ = new_fd; - } - - private: - int fd_; - - DISALLOW_EVIL_CONSTRUCTORS(ScopedFd); -}; - -#endif // BASE_SCOPED_FD_H_ |