diff --git a/base/files/file_util.cc b/base/files/file_util.cc index befe72534653..7ba55fe4f69f 100644 --- a/base/files/file_util.cc +++ b/base/files/file_util.cc @@ -94,7 +94,7 @@ bool ContentsEqual(const FilePath& filename1, const FilePath& filename2) { file2.read(buffer2, BUFFER_SIZE); if ((file1.eof() != file2.eof()) || (file1.gcount() != file2.gcount()) || - (SbMemoryCompare(buffer1, buffer2, + (memcmp(buffer1, buffer2, static_cast(file1.gcount())))) { file1.close(); file2.close(); diff --git a/base/memory/shared_memory_region_unittest.cc b/base/memory/shared_memory_region_unittest.cc index 1098360578b6..d68177e604d3 100644 --- a/base/memory/shared_memory_region_unittest.cc +++ b/base/memory/shared_memory_region_unittest.cc @@ -133,7 +133,7 @@ TYPED_TEST(SharedMemoryRegionTest, SerializeAndDeserialize) { // Verify that the second mapping reflects changes in the first. memset(this->rw_mapping_.memory(), '#', kRegionSize); - EXPECT_EQ(SbMemoryCompare(this->rw_mapping_.memory(), mapping.memory(), + EXPECT_EQ(memcmp(this->rw_mapping_.memory(), mapping.memory(), kRegionSize), 0); }