Index: chrome/browser/browsing_data_file_system_helper.cc |
diff --git a/chrome/browser/browsing_data_file_system_helper.cc b/chrome/browser/browsing_data_file_system_helper.cc |
index 467601ce5db179ce61386c2fd72c47154015bdb6..587dac2e89e50ebccafaf0357db23196afc377ca 100644 |
--- a/chrome/browser/browsing_data_file_system_helper.cc |
+++ b/chrome/browser/browsing_data_file_system_helper.cc |
@@ -116,11 +116,13 @@ void BrowsingDataFileSystemHelperImpl::FetchFileSystemInfoInFileThread() { |
origin_enumerator(BrowserContext::GetFileSystemContext(profile_)-> |
sandbox_provider()->CreateOriginEnumerator()); |
+ scoped_refptr<fileapi::FileSystemContext> context = |
+ BrowserContext::GetFileSystemContext(profile_); |
+ |
// We don't own this pointer; it's a magic singleton generated by the |
// profile's FileSystemContext. Deleting it would be a bad idea. |
fileapi::FileSystemQuotaUtil* quota_util = |
- BrowserContext::GetFileSystemContext(profile_)->GetQuotaUtil( |
- fileapi::kFileSystemTypeTemporary); |
+ context->GetQuotaUtil(fileapi::kFileSystemTypeTemporary); |
GURL current; |
@@ -130,9 +132,11 @@ void BrowsingDataFileSystemHelperImpl::FetchFileSystemInfoInFileThread() { |
// We can call these synchronous methods as we've already verified that |
// we're running on the FILE thread. |
- int64 persistent_usage = quota_util->GetOriginUsageOnFileThread(current, |
+ int64 persistent_usage = quota_util->GetOriginUsageOnFileThread( |
+ context, current, |
fileapi::kFileSystemTypePersistent); |
- int64 temporary_usage = quota_util->GetOriginUsageOnFileThread(current, |
+ int64 temporary_usage = quota_util->GetOriginUsageOnFileThread( |
+ context, current, |
fileapi::kFileSystemTypeTemporary); |
file_system_info_.push_back( |
FileSystemInfo( |