Simplify the usage of singleton
This commit is contained in:
parent
acb2c099f6
commit
310954713f
5 changed files with 18 additions and 27 deletions
|
@ -1046,4 +1046,4 @@ void ProcessSingleton::KillProcess(int pid) {
|
|||
// progress of shutting down and finishes before we try to kill it).
|
||||
DCHECK(rv == 0 || errno == ESRCH) << "Error killing process: "
|
||||
<< base::safe_strerror(errno);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,4 +50,4 @@ bool ProcessSingletonStartupLock::NotificationCallbackImpl(
|
|||
} else {
|
||||
return original_callback_.Run(command_line, current_directory);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,4 +54,4 @@ class ProcessSingletonStartupLock : public base::NonThreadSafe {
|
|||
DISALLOW_COPY_AND_ASSIGN(ProcessSingletonStartupLock);
|
||||
};
|
||||
|
||||
#endif // CHROME_BROWSER_PROCESS_SINGLETON_STARTUP_LOCK_H_
|
||||
#endif // CHROME_BROWSER_PROCESS_SINGLETON_STARTUP_LOCK_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue