app.makeSingleInstance is not available on OS X

This commit is contained in:
Cheng Zhao 2015-10-22 15:02:32 +08:00
parent 310954713f
commit bcb78ebc00
2 changed files with 5 additions and 1 deletions

View file

@ -278,6 +278,10 @@ v8::Local<v8::Value> App::DefaultSession(v8::Isolate* isolate) {
}
bool App::MakeSingleInstance(ProcessSingleton::NotificationCallback callback) {
#if defined(OS_MACOSX)
LOG(ERROR) << "MakeSingleInstance is not implemnted on OS X";
return false;
#endif
if (process_singleton_.get())
return false;