Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Get rid of default BrowserContext
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Jun 22, 2016
1 parent 3a98173 commit e26f807
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions browser/browser_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ BrowserClient::BrowserClient()
BrowserClient::~BrowserClient() {
}

BrowserContext* BrowserClient::browser_context() {
return browser_main_parts_->browser_context();
}

NotificationPresenter* BrowserClient::GetNotificationPresenter() {
#if defined(OS_WIN)
// Bail out if on Windows 7 or even lower, no operating will follow
Expand Down
1 change: 0 additions & 1 deletion browser/browser_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class BrowserClient : public content::ContentBrowserClient {
BrowserClient();
~BrowserClient();

BrowserContext* browser_context();
BrowserMainParts* browser_main_parts() { return browser_main_parts_; }

NotificationPresenter* GetNotificationPresenter();
Expand Down
4 changes: 0 additions & 4 deletions browser/browser_main_parts.cc
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ void BrowserMainParts::PreMainMessageLoopStart() {
}

void BrowserMainParts::PreMainMessageLoopRun() {
browser_context_ = BrowserContext::From("", false);

content::WebUIControllerFactory::RegisterFactory(
WebUIControllerFactory::GetInstance());

Expand All @@ -230,8 +228,6 @@ void BrowserMainParts::PostMainMessageLoopStart() {
}

void BrowserMainParts::PostMainMessageLoopRun() {
browser_context_ = nullptr;

#if defined(USE_X11)
// Unset the X11 error handlers. The X11 error handlers log the errors using a
// |PostTask()| on the message-loop. But since the message-loop is in the
Expand Down
5 changes: 0 additions & 5 deletions browser/browser_main_parts.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,11 @@ class WMState;

namespace brightray {

class BrowserContext;

class BrowserMainParts : public content::BrowserMainParts {
public:
BrowserMainParts();
~BrowserMainParts();

BrowserContext* browser_context() { return browser_context_.get(); }

protected:
// content::BrowserMainParts:
void PreEarlyInitialization() override;
Expand All @@ -52,7 +48,6 @@ class BrowserMainParts : public content::BrowserMainParts {
void InitializeMainNib();
#endif

scoped_refptr<BrowserContext> browser_context_;
std::unique_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_;

#if defined(TOOLKIT_VIEWS)
Expand Down

0 comments on commit e26f807

Please sign in to comment.