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

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

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor and address comments. Created 9 years, 10 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_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 9553c850c9daa552126a2839d69339e36bd1ca93..6283bc97dd4e56e80ae698a9f3ee5fd06bffee91 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -226,6 +226,15 @@ ProfileIOData::GetExtensionsRequestContext() const {
return context;
}
+scoped_refptr<ChromeURLRequestContext>
+ProfileIOData::GetIsolatedAppRequestContext(const Extension* app) const {
+ LazyInitialize();
+ scoped_refptr<ChromeURLRequestContext> context =
+ AcquireIsolatedAppRequestContext(app);
+ DCHECK(context);
+ return context;
+}
+
void ProfileIOData::LazyInitialize() const {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
if (initialized_)

Powered by Google App Engine
This is Rietveld 408576698