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.
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 BrowserContextI OData and retrieve the CookieStore from there. As an example, see BrowserContextI OData:: FromResourceCon text(), which maps a content: ResourceContext associated with network requests to a BrowserContextI OData.