Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Unified Diff: chrome/test/testing_profile.cc

Issue 7063020: Adding `browsing_data_filesystem_helper*` as the first step towards content settings UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Failing test. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/testing_profile.cc
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc
index e78ee9b9a539831d0c16a5b4c66f0499bf067261..4bb31d8f85a19ba9957327633c861a2f1ff9c0c2 100644
--- a/chrome/test/testing_profile.cc
+++ b/chrome/test/testing_profile.cc
@@ -58,6 +58,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;
@@ -513,7 +515,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() {
« chrome/browser/browsing_data_file_system_helper.cc ('K') | « chrome/test/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698