Correctly handle notification callback when shutting down

When returning false in the notification callback the ProcessSingleton
will assume current process is quitting, we should met its expectation.
This commit is contained in:
Cheng Zhao 2015-10-22 16:24:35 +08:00
parent ca876e424b
commit e14fd62f46
3 changed files with 16 additions and 6 deletions

View file

@ -68,11 +68,9 @@ class App : public mate::EventEmitter,
void SetDesktopName(const std::string& desktop_name);
void SetAppUserModelId(const std::string& app_id);
void AllowNTLMCredentialsForAllDomains(bool should_allow);
bool MakeSingleInstance(ProcessSingleton::NotificationCallback callback);
bool MakeSingleInstance(
const ProcessSingleton::NotificationCallback& callback);
std::string GetLocale();
v8::Local<v8::Value> DefaultSession(v8::Isolate* isolate);