Index: chrome/browser/browsing_data_file_system_helper.cc |
=================================================================== |
--- chrome/browser/browsing_data_file_system_helper.cc (revision 139069) |
+++ chrome/browser/browsing_data_file_system_helper.cc (working copy) |
@@ -116,13 +116,11 @@ |
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 = |
- context->GetQuotaUtil(fileapi::kFileSystemTypeTemporary); |
+ BrowserContext::GetFileSystemContext(profile_)->GetQuotaUtil( |
+ fileapi::kFileSystemTypeTemporary); |
GURL current; |
@@ -132,11 +130,9 @@ |
// 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( |
- context, current, |
+ int64 persistent_usage = quota_util->GetOriginUsageOnFileThread(current, |
fileapi::kFileSystemTypePersistent); |
- int64 temporary_usage = quota_util->GetOriginUsageOnFileThread( |
- context, current, |
+ int64 temporary_usage = quota_util->GetOriginUsageOnFileThread(current, |
fileapi::kFileSystemTypeTemporary); |
file_system_info_.push_back( |
FileSystemInfo( |