Create user_data_dir before creating singleton lock
This commit is contained in:
parent
302a6e42bd
commit
4435cdc576
2 changed files with 6 additions and 0 deletions
|
@ -717,6 +717,9 @@ ProcessSingleton::ProcessSingleton(
|
|||
const NotificationCallback& notification_callback)
|
||||
: notification_callback_(notification_callback),
|
||||
current_pid_(base::GetCurrentProcId()) {
|
||||
// The user_data_dir may have not been created yet.
|
||||
base::CreateDirectoryAndGetError(user_data_dir, nullptr);
|
||||
|
||||
socket_path_ = user_data_dir.Append(kSingletonSocketFilename);
|
||||
lock_path_ = user_data_dir.Append(kSingletonLockFilename);
|
||||
cookie_path_ = user_data_dir.Append(kSingletonCookieFilename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue