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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 10909182: Make FileSystemContext respect StoragePartitions. filesystem:// urls will be properly isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove useless headers. Created 8 years, 3 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: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 809ade67129e736f148594130231155ce2ecbc51..9fc6403e518147a4960705c344e4c9fb9e1ef90c 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -680,7 +680,7 @@ net::URLRequestContextGetter* ProfileImpl::GetRequestContextForRenderProcess(
const extensions::Extension* installed_app = extension_service->
GetInstalledAppForRenderer(renderer_child_id);
if (installed_app && installed_app->is_storage_isolated())
- return GetRequestContextForIsolatedApp(installed_app->id());
+ return GetRequestContextForStoragePartition(installed_app->id());
}
content::RenderProcessHost* rph = content::RenderProcessHost::FromID(
@@ -692,7 +692,7 @@ net::URLRequestContextGetter* ProfileImpl::GetRequestContextForRenderProcess(
// non-persistent context using the RPH's id.
std::string id("guest-");
id.append(base::IntToString(renderer_child_id));
- return GetRequestContextForIsolatedApp(id);
+ return GetRequestContextForStoragePartition(id);
}
return GetRequestContext();
@@ -730,6 +730,12 @@ ProfileImpl::GetMediaRequestContextForRenderProcess(
return io_data_.GetMediaRequestContextGetter();
}
+net::URLRequestContextGetter*
+ProfileImpl::GetMediaRequestContextForStoragePartition(
+ const std::string& partition_id) {
+ return io_data_.GetIsolatedMediaRequestContextGetter(partition_id);
+}
+
content::ResourceContext* ProfileImpl::GetResourceContext() {
return io_data_.GetResourceContext();
}
@@ -738,9 +744,9 @@ net::URLRequestContextGetter* ProfileImpl::GetRequestContextForExtensions() {
return io_data_.GetExtensionsRequestContextGetter();
}
-net::URLRequestContextGetter* ProfileImpl::GetRequestContextForIsolatedApp(
- const std::string& app_id) {
- return io_data_.GetIsolatedAppRequestContextGetter(app_id);
+net::URLRequestContextGetter* ProfileImpl::GetRequestContextForStoragePartition(
+ const std::string& partition_id) {
+ return io_data_.GetIsolatedAppRequestContextGetter(partition_id);
}
net::SSLConfigService* ProfileImpl::GetSSLConfigService() {
« no previous file with comments | « chrome/browser/profiles/profile_impl.h ('k') | chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698