1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 #include "chrome/tools/crash_service/caps/process_singleton_win.h"
11 ProcessSingleton::ProcessSingleton() : mutex_(nullptr) {
12 auto mutex
= ::CreateMutex(nullptr, TRUE
, L
"CHROME.CAPS.V1");
15 if (::GetLastError() == ERROR_ALREADY_EXISTS
) {
19 // We are now the single instance.
23 ProcessSingleton::~ProcessSingleton() {
25 ::CloseHandle(mutex_
);