OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "chrome/browser/firefox_profile_lock.h" | 5 #include "chrome/browser/importer/firefox_profile_lock.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 | 8 |
9 // This class is based on Firefox code in: | 9 // This class is based on Firefox code in: |
10 // profile/dirserviceprovider/src/nsProfileLock.cpp | 10 // profile/dirserviceprovider/src/nsProfileLock.cpp |
11 // The license block is: | 11 // The license block is: |
12 | 12 |
13 /* ***** BEGIN LICENSE BLOCK ***** | 13 /* ***** BEGIN LICENSE BLOCK ***** |
14 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 14 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
15 * | 15 * |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 return; | 78 return; |
79 CloseHandle(lock_handle_); | 79 CloseHandle(lock_handle_); |
80 lock_handle_ = INVALID_HANDLE_VALUE; | 80 lock_handle_ = INVALID_HANDLE_VALUE; |
81 } | 81 } |
82 | 82 |
83 bool FirefoxProfileLock::HasAcquired() { | 83 bool FirefoxProfileLock::HasAcquired() { |
84 return (lock_handle_ != INVALID_HANDLE_VALUE); | 84 return (lock_handle_ != INVALID_HANDLE_VALUE); |
85 } | 85 } |
86 | 86 |
87 | 87 |
OLD | NEW |