Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: rlz/win/lib/lib_mutex.cc

Issue 10659022: Revert 144071 - Add a regenerate button to regenerate the password in Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « rlz/win/lib/lib_mutex.h ('k') | rlz/win/lib/machine_deal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Mutex to guarantee serialization of RLZ key accesses. 5 // Mutex to guarantee serialization of RLZ key accesses.
6 6
7 #include "rlz/win/lib/lib_mutex.h" 7 #include "rlz/win/lib/lib_mutex.h"
8 8
9 #include <windows.h> 9 #include <windows.h>
10 #include <Sddl.h> // For SDDL_REVISION_1, ConvertStringSecurityDescript.. 10 #include <Sddl.h> // For SDDL_REVISION_1, ConvertStringSecurityDescript..
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 acquired_ = (WAIT_OBJECT_0 == WaitForSingleObject(mutex_, 5000L)); 58 acquired_ = (WAIT_OBJECT_0 == WaitForSingleObject(mutex_, 5000L));
59 } 59 }
60 } 60 }
61 61
62 LibMutex::~LibMutex() { 62 LibMutex::~LibMutex() {
63 if (acquired_) ReleaseMutex(mutex_); 63 if (acquired_) ReleaseMutex(mutex_);
64 CloseHandle(mutex_); 64 CloseHandle(mutex_);
65 } 65 }
66 66
67 } // namespace rlz_lib 67 } // namespace rlz_lib
OLDNEW
« no previous file with comments | « rlz/win/lib/lib_mutex.h ('k') | rlz/win/lib/machine_deal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698