Index: chrome/test/base/testing_profile.cc |
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc |
index e60d0fc2dbf5e1c0b8781148b9411a4d021a3a1d..656c7aa62b30de8fb64adc7a6a59453d579b4a45 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" |
@@ -126,6 +127,14 @@ ProfileKeyedService* CreateTestDesktopNotificationService(Profile* profile) { |
return new DesktopNotificationService(profile, NULL); |
} |
+fileapi::FileSystemOptions CreateTestingFileSystemOptions(bool is_incognito) { |
+ return fileapi::FileSystemOptions( |
+ is_incognito |
+ ? fileapi::FileSystemOptions::PROFILE_MODE_INCOGNITO |
+ : fileapi::FileSystemOptions::PROFILE_MODE_NORMAL, |
+ std::vector<std::string>()); |
+} |
+ |
} // namespace |
TestingProfile::TestingProfile() |
@@ -610,9 +619,7 @@ fileapi::FileSystemContext* TestingProfile::GetFileSystemContext() { |
GetExtensionSpecialStoragePolicy(), |
NULL, |
GetPath(), |
- IsOffTheRecord(), |
- true, // Allow file access from files. |
- NULL); |
+ CreateTestingFileSystemOptions(IsOffTheRecord())); |
} |
return file_system_context_.get(); |
} |