Woops, how did that happen ;)

This commit is contained in:
Samuel Attard 2017-09-14 23:20:23 +10:00 committed by Cheng Zhao
parent f928a399ae
commit ecbeb0d117
2 changed files with 3 additions and 1 deletions

View file

@ -533,6 +533,8 @@ App::~App() {
content::BrowserChildProcessObserver::Remove(this); content::BrowserChildProcessObserver::Remove(this);
} }
App* App::self_ = nullptr;
App* App::Get() { App* App::Get() {
return App::self_; return App::self_;
} }

View file

@ -101,7 +101,7 @@ class App : public AtomBrowserClient::Delegate,
protected: protected:
explicit App(v8::Isolate* isolate); explicit App(v8::Isolate* isolate);
~App() override; ~App() override;
static App* self_ = nullptr; static App* self_;
// BrowserObserver: // BrowserObserver:
void OnBeforeQuit(bool* prevent_default) override; void OnBeforeQuit(bool* prevent_default) override;