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

Unified Diff: chrome/test/testing_profile.cc

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update cookie logic in test. Created 9 years, 11 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/test/testing_profile.cc
diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc
index 7708c0f4bace41cb47f4407036651403a5a93879..8ff77f0d7a2d8a743f11fd64f5d26e3b238d1378 100644
--- a/chrome/test/testing_profile.cc
+++ b/chrome/test/testing_profile.cc
@@ -409,6 +409,14 @@ URLRequestContextGetter* TestingProfile::GetRequestContext() {
return request_context_.get();
}
+URLRequestContextGetter* TestingProfile::GetRequestContext(
+ const Extension* app) {
+ if (app != NULL && app->is_storage_isolated())
+ return GetRequestContextForIsolatedApp(app);
+
+ return GetRequestContext();
+}
+
void TestingProfile::CreateRequestContext() {
if (!request_context_)
request_context_ = new TestURLRequestContextGetter();
@@ -424,6 +432,13 @@ URLRequestContextGetter* TestingProfile::GetRequestContextForExtensions() {
return extensions_request_context_.get();
}
+URLRequestContextGetter* TestingProfile::GetRequestContextForIsolatedApp(
+ const Extension* installed_app) {
+ // We don't test isolated app storage here yet, so returning the same dummy
+ // context is sufficient for now.
+ return GetRequestContext();
+}
+
FindBarState* TestingProfile::GetFindBarState() {
if (!find_bar_state_.get())
find_bar_state_.reset(new FindBarState());
« chrome/common/extensions/extension_manifests_unittest.cc ('K') | « chrome/test/testing_profile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698