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

Unified Diff: chrome/test/testing_profile.cc

Issue 7129018: Time-based removal of temporary file systems via BrowsingDataRemover (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const_iterator. Created 9 years, 5 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 d1087c5bcae7519d491b5a86c1f580127229eedb..933ba36179d81e87b30375f85abb7099d4033adb 100644
--- a/chrome/test/testing_profile.cc
+++ b/chrome/test/testing_profile.cc
@@ -59,6 +59,7 @@
#include "webkit/database/database_tracker.h"
#include "webkit/fileapi/file_system_context.h"
#include "webkit/quota/quota_manager.h"
+#include "webkit/quota/mock_quota_manager.h"
using base::Time;
using testing::NiceMock;
@@ -544,7 +545,15 @@ fileapi::FileSystemContext* TestingProfile::GetFileSystemContext() {
}
quota::QuotaManager* TestingProfile::GetQuotaManager() {
- return NULL;
+ if (!quota_manager_) {
+ quota_manager_ = new quota::MockQuotaManager(
+ IsOffTheRecord(),
+ GetPath(),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB),
+ GetExtensionSpecialStoragePolicy());
+ }
+ return quota_manager_.get();
}
BrowserSignin* TestingProfile::GetBrowserSignin() {

Powered by Google App Engine
This is Rietveld 408576698