| Index: chrome/test/testing_profile.cc
|
| diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc
|
| index 2c1d98c562cb6b49435f112af24f45e56675ad1b..0ae44049b5972abce6914bed62da624afa1c6be3 100644
|
| --- a/chrome/test/testing_profile.cc
|
| +++ b/chrome/test/testing_profile.cc
|
| @@ -59,6 +59,8 @@
|
| #include "net/url_request/url_request_test_util.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "webkit/database/database_tracker.h"
|
| +#include "webkit/fileapi/file_system_context.h"
|
| +#include "webkit/quota/quota_manager.h"
|
|
|
| using base::Time;
|
| using testing::NiceMock;
|
| @@ -514,7 +516,19 @@ PersonalDataManager* TestingProfile::GetPersonalDataManager() {
|
| }
|
|
|
| fileapi::FileSystemContext* TestingProfile::GetFileSystemContext() {
|
| - return NULL;
|
| + if (!file_system_context_) {
|
| + file_system_context_ = new fileapi::FileSystemContext(
|
| + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
|
| + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
|
| + GetExtensionSpecialStoragePolicy(),
|
| + NULL,
|
| + GetPath(),
|
| + IsOffTheRecord(),
|
| + true, // Allow file access from files.
|
| + true, // Unlimited quota.
|
| + NULL);
|
| + }
|
| + return file_system_context_.get();
|
| }
|
|
|
| quota::QuotaManager* TestingProfile::GetQuotaManager() {
|
|
|