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

Unified Diff: chrome/browser/browsing_data_file_system_helper.cc

Issue 10407115: Always pass FileSystemContext to ObfuscatedFileUtil operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 8 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
« no previous file with comments | « no previous file | webkit/fileapi/file_system_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | webkit/fileapi/file_system_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698