Move management of browser context to BrowserContext
This commit is contained in:
parent
dc1e50c62e
commit
1a8dc77951
3 changed files with 49 additions and 12 deletions
|
@ -121,7 +121,6 @@ void BrowserMainParts::PreMainMessageLoopStart() {
|
|||
|
||||
void BrowserMainParts::PreMainMessageLoopRun() {
|
||||
browser_context_ = CreateBrowserContext();
|
||||
browser_context_->Initialize(std::string());
|
||||
|
||||
content::WebUIControllerFactory::RegisterFactory(
|
||||
WebUIControllerFactory::GetInstance());
|
||||
|
@ -146,7 +145,7 @@ int BrowserMainParts::PreCreateThreads() {
|
|||
}
|
||||
|
||||
BrowserContext* BrowserMainParts::CreateBrowserContext() {
|
||||
return new BrowserContext;
|
||||
return BrowserContext::From("", false);
|
||||
}
|
||||
|
||||
} // namespace brightray
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue