Code review comment for lp://staging/~justinmcp/oxide/mediahub

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

If you're on the UI thread, you can use BrowserContext::GetCookieStore()

http://bazaar.launchpad.net/~oxide-developers/oxide/oxide.trunk/view/head:/shared/browser/oxide_browser_context.h#L214

As BrowserContext is a UI thread only object, if you're on the IO thread you'll need to find a way to map to BrowserContextIOData and retrieve the CookieStore from there. As an example, see BrowserContextIOData::FromResourceContext(), which maps a content:ResourceContext associated with network requests to a BrowserContextIOData.

« Back to merge proposal