diff options
Diffstat (limited to 'chrome/browser/importer/firefox_profile_lock.h')
-rw-r--r-- | chrome/browser/importer/firefox_profile_lock.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/chrome/browser/importer/firefox_profile_lock.h b/chrome/browser/importer/firefox_profile_lock.h index 8b402cf..c32d592 100644 --- a/chrome/browser/importer/firefox_profile_lock.h +++ b/chrome/browser/importer/firefox_profile_lock.h @@ -5,16 +5,11 @@ #ifndef CHROME_BROWSER_IMPORTER_FIREFOX_PROFILE_LOCK_H__ #define CHROME_BROWSER_IMPORTER_FIREFOX_PROFILE_LOCK_H__ -#include "build/build_config.h" - -#if defined(OS_WIN) #include <windows.h> -#endif #include <string> #include "base/basictypes.h" -#include "base/file_path.h" #include "testing/gtest/include/gtest/gtest_prod.h" // Firefox is designed to allow only one application to access its @@ -83,21 +78,16 @@ class FirefoxProfileLock { FRIEND_TEST(FirefoxImporterTest, ProfileLock); FRIEND_TEST(FirefoxImporterTest, ProfileLockOrphaned); - static const FilePath::CharType* kLockFileName; - - void Init(); + // The name of the lock file. + static wchar_t kLockFileName[]; // Full path of the lock file in the profile folder. - FilePath lock_file_; + std::wstring lock_file_; // The handle of the lock file. -#if defined(OS_WIN) HANDLE lock_handle_; -#elif defined(OS_POSIX) - int lock_fd_; -#endif - DISALLOW_COPY_AND_ASSIGN(FirefoxProfileLock); + DISALLOW_EVIL_CONSTRUCTORS(FirefoxProfileLock); }; #endif // CHROME_BROWSER_IMPORTER_FIREFOX_PROFILE_LOCK_H__ |