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

Unified Diff: content/browser/browser_context.cc

Issue 10834264: Add BrowserContext::GetQuotaManagerForRenderProcess for the isolated app feature. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
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();
}

Powered by Google App Engine
This is Rietveld 408576698