summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-22 20:06:33 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-22 20:06:33 +0000
commit661fdc74c29b1ef1d8ed2576ab154fed109c8c6c (patch)
tree2b72d7ce442773ad96add7af28c3f4385c465cee /chrome/common
parent59b35a47ec895c0f482a7ecd52599d48b77087c6 (diff)
downloadchromium_src-661fdc74c29b1ef1d8ed2576ab154fed109c8c6c.zip
chromium_src-661fdc74c29b1ef1d8ed2576ab154fed109c8c6c.tar.gz
chromium_src-661fdc74c29b1ef1d8ed2576ab154fed109c8c6c.tar.bz2
Revert 35160 - Check result on fstat call.
BUG=none TEST=none Review URL: http://codereview.chromium.org/504082 TBR=thomasvl@chromium.org Review URL: http://codereview.chromium.org/509031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/transport_dib_mac.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/common/transport_dib_mac.cc b/chrome/common/transport_dib_mac.cc
index 63c38cf..59b9433 100644
--- a/chrome/common/transport_dib_mac.cc
+++ b/chrome/common/transport_dib_mac.cc
@@ -8,7 +8,6 @@
#include <sys/stat.h>
#include "base/eintr_wrapper.h"
-#include "base/logging.h"
#include "base/shared_memory.h"
#include "skia/ext/platform_canvas.h"
@@ -41,8 +40,7 @@ TransportDIB* TransportDIB::Create(size_t size, uint32 sequence_num) {
TransportDIB* TransportDIB::Map(TransportDIB::Handle handle) {
TransportDIB* dib = new TransportDIB(handle);
struct stat st;
- int result = fstat(handle.fd, &st);
- DCHECK_EQ(result, 0) << "fstat failed";
+ fstat(handle.fd, &st);
if (!dib->shared_memory_.Map(st.st_size)) {
delete dib;