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

Unified Diff: chrome/test/base/testing_profile.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
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | content/browser/appcache/chrome_appcache_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index e715adeaf0fd85f5f92cac0b68256b610bf6f0ac..9f34ca30673335b746c3e78e905f665f968d1219 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -616,7 +616,7 @@ net::URLRequestContextGetter* TestingProfile::GetRequestContextForRenderProcess(
const extensions::Extension* installed_app = extension_service->
GetInstalledAppForRenderer(renderer_child_id);
if (installed_app != NULL && installed_app->is_storage_isolated())
- return GetRequestContextForIsolatedApp(installed_app->id());
+ return GetRequestContextForStoragePartition(installed_app->id());
}
content::RenderProcessHost* rph = content::RenderProcessHost::FromID(
@@ -628,7 +628,7 @@ net::URLRequestContextGetter* TestingProfile::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();
@@ -659,6 +659,12 @@ TestingProfile::GetMediaRequestContextForRenderProcess(
return NULL;
}
+net::URLRequestContextGetter*
+TestingProfile::GetMediaRequestContextForStoragePartition(
+ const std::string& partition_id) {
+ return NULL;
+}
+
net::URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() {
if (!extensions_request_context_)
extensions_request_context_ = new TestExtensionURLRequestContextGetter();
@@ -669,9 +675,10 @@ net::SSLConfigService* TestingProfile::GetSSLConfigService() {
return NULL;
}
-net::URLRequestContextGetter* TestingProfile::GetRequestContextForIsolatedApp(
- const std::string& app_id) {
- // We don't test isolated app storage here yet, so returning the same dummy
+net::URLRequestContextGetter*
+TestingProfile::GetRequestContextForStoragePartition(
+ const std::string& partition_id) {
+ // We don't test storage partitions here yet, so returning the same dummy
// context is sufficient for now.
return GetRequestContext();
}
« no previous file with comments | « chrome/test/base/testing_profile.h ('k') | content/browser/appcache/chrome_appcache_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698