diff --git a/atom/browser/api/atom_api_app.cc b/atom/browser/api/atom_api_app.cc index c8b937098b2..fc946567b11 100644 --- a/atom/browser/api/atom_api_app.cc +++ b/atom/browser/api/atom_api_app.cc @@ -533,6 +533,8 @@ App::~App() { content::BrowserChildProcessObserver::Remove(this); } +App* App::self_ = nullptr; + App* App::Get() { return App::self_; } diff --git a/atom/browser/api/atom_api_app.h b/atom/browser/api/atom_api_app.h index 17accf9c183..82403e9da44 100644 --- a/atom/browser/api/atom_api_app.h +++ b/atom/browser/api/atom_api_app.h @@ -101,7 +101,7 @@ class App : public AtomBrowserClient::Delegate, protected: explicit App(v8::Isolate* isolate); ~App() override; - static App* self_ = nullptr; + static App* self_; // BrowserObserver: void OnBeforeQuit(bool* prevent_default) override;