| Index: webkit/browser/fileapi/file_system_url_request_job_factory.cc
|
| diff --git a/webkit/browser/fileapi/file_system_url_request_job_factory.cc b/webkit/browser/fileapi/file_system_url_request_job_factory.cc
|
| index 3add372e5e647eb9413171c6fc53bf021c8a5915..76ae7c9ac0596b801cd778fd31010d4ffcd97dbd 100644
|
| --- a/webkit/browser/fileapi/file_system_url_request_job_factory.cc
|
| +++ b/webkit/browser/fileapi/file_system_url_request_job_factory.cc
|
| @@ -19,8 +19,7 @@
|
| class FileSystemProtocolHandler
|
| : public net::URLRequestJobFactory::ProtocolHandler {
|
| public:
|
| - FileSystemProtocolHandler(const std::string& storage_domain,
|
| - FileSystemContext* context);
|
| + explicit FileSystemProtocolHandler(FileSystemContext* context);
|
| virtual ~FileSystemProtocolHandler();
|
|
|
| virtual net::URLRequestJob* MaybeCreateJob(
|
| @@ -28,8 +27,6 @@
|
| net::NetworkDelegate* network_delegate) const OVERRIDE;
|
|
|
| private:
|
| - const std::string storage_domain_;
|
| -
|
| // No scoped_refptr because |file_system_context_| is owned by the
|
| // ProfileIOData, which also owns this ProtocolHandler.
|
| FileSystemContext* const file_system_context_;
|
| @@ -38,10 +35,8 @@
|
| };
|
|
|
| FileSystemProtocolHandler::FileSystemProtocolHandler(
|
| - const std::string& storage_domain,
|
| FileSystemContext* context)
|
| - : storage_domain_(storage_domain),
|
| - file_system_context_(context) {
|
| + : file_system_context_(context) {
|
| DCHECK(file_system_context_);
|
| }
|
|
|
| @@ -56,18 +51,18 @@
|
| // redirects back here, by adding a / to the URL.
|
| if (!path.empty() && path[path.size() - 1] == '/') {
|
| return new FileSystemDirURLRequestJob(
|
| - request, network_delegate, storage_domain_, file_system_context_);
|
| + request, network_delegate, file_system_context_);
|
| }
|
| return new FileSystemURLRequestJob(
|
| - request, network_delegate, storage_domain_, file_system_context_);
|
| + request, network_delegate, file_system_context_);
|
| }
|
|
|
| } // anonymous namespace
|
|
|
| -net::URLRequestJobFactory::ProtocolHandler* CreateFileSystemProtocolHandler(
|
| - const std::string& storage_domain, FileSystemContext* context) {
|
| +net::URLRequestJobFactory::ProtocolHandler*
|
| +CreateFileSystemProtocolHandler(FileSystemContext* context) {
|
| DCHECK(context);
|
| - return new FileSystemProtocolHandler(storage_domain, context);
|
| + return new FileSystemProtocolHandler(context);
|
| }
|
|
|
| } // namespace fileapi
|
|
|