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

Unified Diff: chrome/browser/profiles/profile_browsertest.cc

Issue 213473005: Remove PlatformFile from profile_browsertest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_browsertest.cc
diff --git a/chrome/browser/profiles/profile_browsertest.cc b/chrome/browser/profiles/profile_browsertest.cc
index fde3cafab1dbd92b03cbc5dca889db2066afffeb..aa5039d3251af16e20a8941785952a134161626b 100644
--- a/chrome/browser/profiles/profile_browsertest.cc
+++ b/chrome/browser/profiles/profile_browsertest.cc
@@ -6,7 +6,6 @@
#include "base/file_util.h"
#include "base/files/scoped_temp_dir.h"
-#include "base/platform_file.h"
#include "base/prefs/pref_service.h"
#include "base/version.h"
#include "chrome/browser/chrome_notification_types.h"
@@ -33,10 +32,6 @@ class MockProfileDelegate : public Profile::Delegate {
// Creates a prefs file in the given directory.
void CreatePrefsFileInDirectory(const base::FilePath& directory_path) {
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("{}");
ASSERT_TRUE(base::WriteFile(pref_path, data.c_str(), data.size()));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698