From 661fdc74c29b1ef1d8ed2576ab154fed109c8c6c Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Tue, 22 Dec 2009 20:06:33 +0000 Subject: 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 --- chrome/common/transport_dib_mac.cc | 4 +--- 1 file changed, 1 insertion(+), 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 #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; -- cgit v1.1