diff options
author | oleg@chromium.org <oleg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-26 11:18:26 +0000 |
---|---|---|
committer | oleg@chromium.org <oleg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-26 11:18:26 +0000 |
commit | 49b67d2e3b61bcdc4af5a3f0b396f3d0539cf10f (patch) | |
tree | 03d1c959de6a1d7c7fd84962ec85cc6ac7eee6ef /webkit/tools/test_shell | |
parent | b06b95096627f9a4e34ff8cbe7916a3b6233caf0 (diff) | |
download | chromium_src-49b67d2e3b61bcdc4af5a3f0b396f3d0539cf10f.zip chromium_src-49b67d2e3b61bcdc4af5a3f0b396f3d0539cf10f.tar.gz chromium_src-49b67d2e3b61bcdc4af5a3f0b396f3d0539cf10f.tar.bz2 |
Refactor FileSystemOperation:
1. Get FileSystemFileUtil inside FileSystemOperation, do not receive it as a parameter.
2. Extract the common code to the separate method.
Review URL: http://codereview.chromium.org/8355003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107331 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell')
-rw-r--r-- | webkit/tools/test_shell/simple_file_system.cc | 2 | ||||
-rw-r--r-- | webkit/tools/test_shell/simple_file_writer.cc | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/simple_file_system.cc b/webkit/tools/test_shell/simple_file_system.cc index 08718d1..3a50d61 100644 --- a/webkit/tools/test_shell/simple_file_system.cc +++ b/webkit/tools/test_shell/simple_file_system.cc @@ -231,6 +231,6 @@ FileSystemOperation* SimpleFileSystem::GetNewOperation( new SimpleFileSystemCallbackDispatcher(AsWeakPtr(), callbacks); FileSystemOperation* operation = new FileSystemOperation( dispatcher, base::MessageLoopProxy::current(), - file_system_context_.get(), NULL); + file_system_context_.get()); return operation; } diff --git a/webkit/tools/test_shell/simple_file_writer.cc b/webkit/tools/test_shell/simple_file_writer.cc index 5956696..dfa37ba 100644 --- a/webkit/tools/test_shell/simple_file_writer.cc +++ b/webkit/tools/test_shell/simple_file_writer.cc @@ -130,8 +130,7 @@ class SimpleFileWriter::IOThreadProxy FileSystemOperation* GetNewOperation() { // The FileSystemOperation takes ownership of the CallbackDispatcher. return new FileSystemOperation(new CallbackDispatcher(this), - io_thread_, file_system_context_.get(), - NULL); + io_thread_, file_system_context_.get()); } void DidSucceed() { |