| Index: chrome/browser/chromeos/file_system_provider/operations/write_file.h
|
| diff --git a/chrome/browser/chromeos/file_system_provider/operations/write_file.h b/chrome/browser/chromeos/file_system_provider/operations/write_file.h
|
| index c9b220fbb001192bf3725168063ad25360c5a872..d82586c5c22a2dd1924e46085855b0b5f06ae636 100644
|
| --- a/chrome/browser/chromeos/file_system_provider/operations/write_file.h
|
| +++ b/chrome/browser/chromeos/file_system_provider/operations/write_file.h
|
| @@ -19,10 +19,6 @@ namespace base {
|
| class FilePath;
|
| } // namespace base
|
|
|
| -namespace extensions {
|
| -class EventRouter;
|
| -} // namespace extensions
|
| -
|
| namespace chromeos {
|
| namespace file_system_provider {
|
| namespace operations {
|
| @@ -30,9 +26,10 @@ namespace operations {
|
| // Bridge between fileapi write file and providing extension's write fil
|
| // request.
|
| // Created per request.
|
| -class WriteFile : public Operation {
|
| +template <class DestinationPolicy>
|
| +class WriteFile : public Operation<DestinationPolicy> {
|
| public:
|
| - WriteFile(extensions::EventRouter* event_router,
|
| + WriteFile(typename DestinationPolicy::EventRouterType* event_router,
|
| const ProvidedFileSystemInfo& file_system_info,
|
| int file_handle,
|
| scoped_refptr<net::IOBuffer> buffer,
|
| @@ -57,7 +54,7 @@ class WriteFile : public Operation {
|
| int length_;
|
| const storage::AsyncFileUtil::StatusCallback callback_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(WriteFile);
|
| + DISALLOW_COPY_AND_ASSIGN(WriteFile<DestinationPolicy>);
|
| };
|
|
|
| } // namespace operations
|
|
|