diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-06 07:46:37 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-06 07:46:37 +0000 |
commit | 3e377c5a80be45d36a6015c80d9e2dae525cf042 (patch) | |
tree | 089f72c86a2f2314e527f2e95a3903253fbcf51a /net/base | |
parent | a42d22a1abe11d4f138c4c0870568be69bad5301 (diff) | |
download | chromium_src-3e377c5a80be45d36a6015c80d9e2dae525cf042.zip chromium_src-3e377c5a80be45d36a6015c80d9e2dae525cf042.tar.gz chromium_src-3e377c5a80be45d36a6015c80d9e2dae525cf042.tar.bz2 |
Revert of r22559.
This caused an easily reproducible crash:
1. Start with a fresh profile
2. Navigate to google.com
3. Restart
4. Navigate to google.com
5. crash
The change from pass-by-value to pass-by-ref in
fav_icon_helper.* seems to be to blame, but I can't see it
right off.
TBR=phajdan.jr@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22595 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base')
-rw-r--r-- | net/base/bzip2_filter_unittest.cc | 2 | ||||
-rw-r--r-- | net/base/file_stream_posix.cc | 7 | ||||
-rw-r--r-- | net/base/file_stream_unittest.cc | 2 | ||||
-rw-r--r-- | net/base/file_stream_win.cc | 7 | ||||
-rw-r--r-- | net/base/gzip_filter_unittest.cc | 2 |
5 files changed, 7 insertions, 13 deletions
diff --git a/net/base/bzip2_filter_unittest.cc b/net/base/bzip2_filter_unittest.cc index 3dd5e14..9b1eab5 100644 --- a/net/base/bzip2_filter_unittest.cc +++ b/net/base/bzip2_filter_unittest.cc @@ -43,7 +43,7 @@ class BZip2FilterUnitTest : public PlatformTest { file_path = file_path.AppendASCII("google.txt"); // Read data from the file into buffer. - ASSERT_TRUE(file_util::ReadFileToString(file_path, &source_buffer_)); + file_util::ReadFileToString(file_path, &source_buffer_); // Append the extra data to end of source source_buffer_.append(kExtraData, kExtraDataBufferSize); diff --git a/net/base/file_stream_posix.cc b/net/base/file_stream_posix.cc index aac0be2..5c55781 100644 --- a/net/base/file_stream_posix.cc +++ b/net/base/file_stream_posix.cc @@ -290,15 +290,12 @@ void FileStream::AsyncContext::RunAsynchronousCallback() { // FileStream ------------------------------------------------------------ -FileStream::FileStream() - : file_(base::kInvalidPlatformFileValue), - open_flags_(0) { +FileStream::FileStream() : file_(base::kInvalidPlatformFileValue) { DCHECK(!IsOpen()); } FileStream::FileStream(base::PlatformFile file, int flags) - : file_(file), - open_flags_(flags) { + : file_(file), open_flags_(flags) { // If the file handle is opened with base::PLATFORM_FILE_ASYNC, we need to // make sure we will perform asynchronous File IO to it. if (flags & base::PLATFORM_FILE_ASYNC) { diff --git a/net/base/file_stream_unittest.cc b/net/base/file_stream_unittest.cc index f430d8e..4b8b12b 100644 --- a/net/base/file_stream_unittest.cc +++ b/net/base/file_stream_unittest.cc @@ -885,7 +885,7 @@ TEST_F(FileStreamTest, Truncate) { // Read in the contents and make sure we get back what we expected. std::string read_contents; - EXPECT_TRUE(file_util::ReadFileToString(temp_file_path(), &read_contents)); + file_util::ReadFileToString(temp_file_path(), &read_contents); EXPECT_EQ("01230123", read_contents); } diff --git a/net/base/file_stream_win.cc b/net/base/file_stream_win.cc index cec6a9d..09ad88e 100644 --- a/net/base/file_stream_win.cc +++ b/net/base/file_stream_win.cc @@ -115,14 +115,11 @@ void FileStream::AsyncContext::OnIOCompleted( // FileStream ------------------------------------------------------------ -FileStream::FileStream() - : file_(INVALID_HANDLE_VALUE), - open_flags_(0) { +FileStream::FileStream() : file_(INVALID_HANDLE_VALUE) { } FileStream::FileStream(base::PlatformFile file, int flags) - : file_(file), - open_flags_(flags) { + : file_(file), open_flags_(flags) { // If the file handle is opened with base::PLATFORM_FILE_ASYNC, we need to // make sure we will perform asynchronous File IO to it. if (flags & base::PLATFORM_FILE_ASYNC) { diff --git a/net/base/gzip_filter_unittest.cc b/net/base/gzip_filter_unittest.cc index 91409a9..c933014 100644 --- a/net/base/gzip_filter_unittest.cc +++ b/net/base/gzip_filter_unittest.cc @@ -66,7 +66,7 @@ class GZipUnitTest : public PlatformTest { file_path = file_path.AppendASCII("google.txt"); // Read data from the file into buffer. - ASSERT_TRUE(file_util::ReadFileToString(file_path, &source_buffer_)); + file_util::ReadFileToString(file_path, &source_buffer_); // Encode the data with deflate deflate_encode_buffer_ = new char[kDefaultBufferSize]; |