From de5480fa7532fe62b90db7f9b91b6644bfe9c865 Mon Sep 17 00:00:00 2001 From: "mkwst@chromium.org" Date: Thu, 26 May 2011 22:07:36 +0000 Subject: 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 --- chrome/test/testing_profile.cc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'chrome/test/testing_profile.cc') 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() { -- cgit v1.1