Index: content/browser/browser_context.cc |
=================================================================== |
--- content/browser/browser_context.cc (revision 150659) |
+++ content/browser/browser_context.cc (working copy) |
@@ -130,13 +130,16 @@ |
context, kDownloadManagerKeyName); |
} |
-quota::QuotaManager* BrowserContext::GetQuotaManager( |
+quota::QuotaManager* BrowserContext::GetDefaultQuotaManager( |
BrowserContext* browser_context) { |
- // TODO(ajwong): Change this API to require a process id instead of using |
- // kInvalidChildProcessId. |
- StoragePartition* partition = |
- GetStoragePartition(browser_context, |
- ChildProcessHostImpl::kInvalidChildProcessId); |
+ return GetQuotaManagerForRenderProcess( |
+ browser_context, ChildProcessHostImpl::kInvalidChildProcessId); |
+} |
+ |
+quota::QuotaManager* BrowserContext::GetQuotaManagerForRenderProcess( |
+ BrowserContext* browser_context, int renderer_child_id) { |
+ StoragePartition* partition = GetStoragePartition( |
+ browser_context, renderer_child_id); |
return partition->quota_manager(); |
} |