Index: chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h |
diff --git a/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h b/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h |
index a77c7fcf9e4425f710d8660bc4abc383d0d4202c..4eff2d589ce70f6be165306cd5cea2b2c8a4c353 100644 |
--- a/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h |
+++ b/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h |
@@ -7,6 +7,7 @@ |
#include <string> |
+#include "base/memory/weak_ptr.h" |
#include "chrome/browser/chromeos/file_system_provider/provided_file_system_info.h" |
#include "chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h" |
@@ -28,10 +29,11 @@ class FakeProvidedFileSystem : public ProvidedFileSystemInterface { |
virtual ~FakeProvidedFileSystem(); |
// ProvidedFileSystemInterface overrides. |
- virtual bool RequestUnmount( |
+ virtual void RequestUnmount( |
const fileapi::AsyncFileUtil::StatusCallback& callback) OVERRIDE; |
virtual const ProvidedFileSystemInfo& GetFileSystemInfo() const OVERRIDE; |
virtual RequestManager* GetRequestManager() OVERRIDE; |
+ virtual base::WeakPtr<ProvidedFileSystemInterface> GetWeakPtr() OVERRIDE; |
// Factory callback, to be used in Service::SetFileSystemFactory(). The |
// |event_router| argument can be NULL. |
@@ -41,6 +43,8 @@ class FakeProvidedFileSystem : public ProvidedFileSystemInterface { |
private: |
ProvidedFileSystemInfo file_system_info_; |
+ base::WeakPtrFactory<ProvidedFileSystemInterface> weak_ptr_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(FakeProvidedFileSystem); |
}; |