diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-23 08:28:45 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-23 08:28:45 +0000 |
commit | 619a0398ce1312b4f76f8c44dd945390f695ed12 (patch) | |
tree | c4c73a3f7b96cf186c40c2281425489e0481f651 /content/browser/loader | |
parent | 5d5c3593b89f08125d4e1add002ccaf1a7d706ed (diff) | |
download | chromium_src-619a0398ce1312b4f76f8c44dd945390f695ed12.zip chromium_src-619a0398ce1312b4f76f8c44dd945390f695ed12.tar.gz chromium_src-619a0398ce1312b4f76f8c44dd945390f695ed12.tar.bz2 |
net: Remove unused NetLog parameter from FileStream's ctor
Remove NetLog parameter from FileStream's ctor to which all users are passing NULL.
Remove BoundNetLog from FileStream which does nothing if net_log==NULL.
Remove an enum (FileErrorSource), methods (RecordError, BeginOpenEvent, ProcessOpenError, ProcessAsyncResult, OnAsyncCompleted) and member variables (bound_net_log_ and error_source_) from file_stream_context.h.
BUG=361496
TEST=git cl try
Review URL: https://codereview.chromium.org/242873003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265576 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/loader')
-rw-r--r-- | content/browser/loader/resource_loader_unittest.cc | 2 | ||||
-rw-r--r-- | content/browser/loader/temporary_file_stream.cc | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/content/browser/loader/resource_loader_unittest.cc b/content/browser/loader/resource_loader_unittest.cc index dc5d027..0d2629d 100644 --- a/content/browser/loader/resource_loader_unittest.cc +++ b/content/browser/loader/resource_loader_unittest.cc @@ -515,7 +515,7 @@ class ResourceLoaderRedirectToFileTest : public ResourceLoaderTest { // Create mock file streams and a ShareableFileReference. scoped_ptr<net::testing::MockFileStream> file_stream( - new net::testing::MockFileStream(file.Pass(), NULL, + new net::testing::MockFileStream(file.Pass(), base::MessageLoopProxy::current())); file_stream_ = file_stream.get(); deletable_file_ = ShareableFileReference::GetOrCreate( diff --git a/content/browser/loader/temporary_file_stream.cc b/content/browser/loader/temporary_file_stream.cc index 1d23ae9..5979bd9 100644 --- a/content/browser/loader/temporary_file_stream.cc +++ b/content/browser/loader/temporary_file_stream.cc @@ -40,8 +40,7 @@ void DidCreateTemporaryFile( scoped_ptr<net::FileStream> file_stream(new net::FileStream( file_handle.ReleaseValue(), - base::PLATFORM_FILE_WRITE | base::PLATFORM_FILE_ASYNC, - NULL)); + base::PLATFORM_FILE_WRITE | base::PLATFORM_FILE_ASYNC)); callback.Run(error_code, file_stream.Pass(), deletable_file); } |