Commit b4ac22e3 authored by rvargas@chromium.org's avatar rvargas@chromium.org

Remove PlatformFile from profile_browsertest

BUG=322664

Review URL: https://codereview.chromium.org/213473005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260441 0039d316-1c4b-4281-b951-d872f2087c98
parent 00a89246
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include "base/file_util.h" #include "base/file_util.h"
#include "base/files/scoped_temp_dir.h" #include "base/files/scoped_temp_dir.h"
#include "base/platform_file.h"
#include "base/prefs/pref_service.h" #include "base/prefs/pref_service.h"
#include "base/version.h" #include "base/version.h"
#include "chrome/browser/chrome_notification_types.h" #include "chrome/browser/chrome_notification_types.h"
...@@ -33,10 +32,6 @@ class MockProfileDelegate : public Profile::Delegate { ...@@ -33,10 +32,6 @@ class MockProfileDelegate : public Profile::Delegate {
// Creates a prefs file in the given directory. // Creates a prefs file in the given directory.
void CreatePrefsFileInDirectory(const base::FilePath& directory_path) { void CreatePrefsFileInDirectory(const base::FilePath& directory_path) {
base::FilePath pref_path(directory_path.Append(chrome::kPreferencesFilename)); base::FilePath pref_path(directory_path.Append(chrome::kPreferencesFilename));
base::PlatformFile file = base::CreatePlatformFile(pref_path,
base::PLATFORM_FILE_CREATE | base::PLATFORM_FILE_WRITE, NULL, NULL);
ASSERT_TRUE(file != base::kInvalidPlatformFileValue);
ASSERT_TRUE(base::ClosePlatformFile(file));
std::string data("{}"); std::string data("{}");
ASSERT_TRUE(base::WriteFile(pref_path, data.c_str(), data.size())); ASSERT_TRUE(base::WriteFile(pref_path, data.c_str(), data.size()));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment