Simplify the usage of singleton

This commit is contained in:
Cheng Zhao 2015-10-22 14:59:12 +08:00
parent acb2c099f6
commit 310954713f
5 changed files with 18 additions and 27 deletions

View file

@ -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);
}
}

View file

@ -50,4 +50,4 @@ bool ProcessSingletonStartupLock::NotificationCallbackImpl(
} else {
return original_callback_.Run(command_line, current_directory);
}
}
}

View file

@ -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_