This source file includes following definitions.
- GetBrowserContextRedirectedInIncognito
- GetBrowserContextOwnInstanceInIncognito
#include "chrome/browser/profiles/incognito_helpers.h"
#include "chrome/browser/profiles/profile.h"
namespace chrome {
content::BrowserContext* GetBrowserContextRedirectedInIncognito(
content::BrowserContext* context) {
return static_cast<Profile*>(context)->GetOriginalProfile();
}
content::BrowserContext* GetBrowserContextOwnInstanceInIncognito(
content::BrowserContext* context) {
return context;
}
}