diff options
author | mkwst@chromium.org <mkwst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-26 22:07:36 +0000 |
---|---|---|
committer | mkwst@chromium.org <mkwst@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-26 22:07:36 +0000 |
commit | de5480fa7532fe62b90db7f9b91b6644bfe9c865 (patch) | |
tree | 139bb51192ecb82ee2cc913d7355f0f8773039ef /chrome/test/testing_profile.cc | |
parent | 40850a556804e6cd9c4256279296d2a0e8b69431 (diff) | |
download | chromium_src-de5480fa7532fe62b90db7f9b91b6644bfe9c865.zip chromium_src-de5480fa7532fe62b90db7f9b91b6644bfe9c865.tar.gz chromium_src-de5480fa7532fe62b90db7f9b91b6644bfe9c865.tar.bz2 |
Adding `browsing_data_filesystem_helper*` as the first step towards content settings UI.
gypi files.
BUG=63703
TEST=BrowsingDataFilesystemHelperTest* in `browser_tests` and `unit_tests`
Review URL: http://codereview.chromium.org/7063020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86904 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/testing_profile.cc')
-rw-r--r-- | chrome/test/testing_profile.cc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc index 2c1d98c..0ae4404 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() { |