| Index: chrome/test/base/testing_profile.cc
|
| diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
|
| index d9c187670b071cfa3ee175f5c5540cc731fb24c3..c7c31e637ba643b9761483dd98f0ade93739f1d8 100644
|
| --- a/chrome/test/base/testing_profile.cc
|
| +++ b/chrome/test/base/testing_profile.cc
|
| @@ -59,6 +59,7 @@
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "webkit/database/database_tracker.h"
|
| #include "webkit/fileapi/file_system_context.h"
|
| +#include "webkit/fileapi/file_system_options.h"
|
| #include "webkit/quota/mock_quota_manager.h"
|
| #include "webkit/quota/quota_manager.h"
|
|
|
| @@ -125,6 +126,16 @@ ProfileKeyedService* CreateTestDesktopNotificationService(Profile* profile) {
|
| return new DesktopNotificationService(profile, NULL);
|
| }
|
|
|
| +class TestingFileSystemOptions : public fileapi::FileSystemOptions {
|
| + public:
|
| + explicit TestingFileSystemOptions(bool is_incognito)
|
| + : is_incognito_(is_incognito) {}
|
| + virtual bool is_incognito() const OVERRIDE { return is_incognito_; }
|
| + virtual bool allow_file_access_from_files() const OVERRIDE { return true; }
|
| + private:
|
| + bool is_incognito_;
|
| +};
|
| +
|
| } // namespace
|
|
|
| TestingProfile::TestingProfile()
|
| @@ -609,9 +620,7 @@ fileapi::FileSystemContext* TestingProfile::GetFileSystemContext() {
|
| GetExtensionSpecialStoragePolicy(),
|
| NULL,
|
| GetPath(),
|
| - IsOffTheRecord(),
|
| - true, // Allow file access from files.
|
| - NULL);
|
| + new TestingFileSystemOptions(IsOffTheRecord()));
|
| }
|
| return file_system_context_.get();
|
| }
|
|
|