From 932289db27336277e6bab6fd48542db9cd513458 Mon Sep 17 00:00:00 2001 From: "nsylvain@chromium.org" Date: Mon, 1 Dec 2008 20:23:22 +0000 Subject: Revert change 6149 because it broke the unit tests on windows. Review URL: http://codereview.chromium.org/12834 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6155 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/importer/firefox_profile_lock.h | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'chrome/browser/importer/firefox_profile_lock.h') 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 -#endif #include #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__ -- cgit v1.1