From ecbeb0d1171ce41e016e84e9285b82b356b27d99 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Thu, 14 Sep 2017 23:20:23 +1000 Subject: [PATCH] Woops, how did that happen ;) --- atom/browser/api/atom_api_app.cc | 2 ++ atom/browser/api/atom_api_app.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/atom/browser/api/atom_api_app.cc b/atom/browser/api/atom_api_app.cc index c8b937098b..fc946567b1 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 17accf9c18..82403e9da4 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;