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

Unified Diff: chrome/browser/browsing_data_file_system_helper.cc

Issue 10449028: Revert 138444 - Always pass FileSystemContext to ObfuscatedFileUtil operations (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1151/src/
Patch Set: 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
===================================================================
--- 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(
« 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