mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Singleton must be created on request
The creation of singleton relies on the `userData` dir, which can be changed by user, we have to ensure singleton uses the `userData` dir set by user.
This commit is contained in:
@@ -218,6 +218,8 @@ class App : public AtomBrowserClient::Delegate,
|
||||
JumpListResult SetJumpList(v8::Local<v8::Value> val, mate::Arguments* args);
|
||||
#endif // defined(OS_WIN)
|
||||
|
||||
std::unique_ptr<ProcessSingleton> process_singleton_;
|
||||
|
||||
#if defined(USE_NSS_CERTS)
|
||||
std::unique_ptr<CertificateManagerModel> certificate_manager_model_;
|
||||
#endif
|
||||
@@ -232,8 +234,6 @@ class App : public AtomBrowserClient::Delegate,
|
||||
std::unique_ptr<atom::ProcessMetric>>;
|
||||
ProcessMetricMap app_metrics_;
|
||||
|
||||
bool process_singleton_created_ = false;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(App);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user