summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/first_run')
-rw-r--r--chrome/browser/first_run/first_run.cc2
-rw-r--r--chrome/browser/first_run/first_run_browsertest.cc3
-rw-r--r--chrome/browser/first_run/first_run_internal_win.cc4
3 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/first_run/first_run.cc b/chrome/browser/first_run/first_run.cc
index a5e826d..d89e76b 100644
--- a/chrome/browser/first_run/first_run.cc
+++ b/chrome/browser/first_run/first_run.cc
@@ -568,7 +568,7 @@ bool CreateSentinel() {
base::FilePath first_run_sentinel;
if (!internal::GetFirstRunSentinelFilePath(&first_run_sentinel))
return false;
- return file_util::WriteFile(first_run_sentinel, "", 0) != -1;
+ return base::WriteFile(first_run_sentinel, "", 0) != -1;
}
// -- Platform-specific functions --
diff --git a/chrome/browser/first_run/first_run_browsertest.cc b/chrome/browser/first_run/first_run_browsertest.cc
index c295df9..d1f65e7 100644
--- a/chrome/browser/first_run/first_run_browsertest.cc
+++ b/chrome/browser/first_run/first_run_browsertest.cc
@@ -89,8 +89,7 @@ class FirstRunMasterPrefsBrowserTestBase : public InProcessBrowserTest {
ASSERT_TRUE(text_.get());
ASSERT_TRUE(base::CreateTemporaryFile(&prefs_file_));
- EXPECT_TRUE(file_util::WriteFile(prefs_file_, text_->c_str(),
- text_->size()));
+ EXPECT_TRUE(base::WriteFile(prefs_file_, text_->c_str(), text_->size()));
first_run::SetMasterPrefsPathForTesting(prefs_file_);
// This invokes BrowserMain, and does the import, so must be done last.
diff --git a/chrome/browser/first_run/first_run_internal_win.cc b/chrome/browser/first_run/first_run_internal_win.cc
index bcc7911..2225cc8 100644
--- a/chrome/browser/first_run/first_run_internal_win.cc
+++ b/chrome/browser/first_run/first_run_internal_win.cc
@@ -108,7 +108,7 @@ bool WriteEULAtoTempFile(base::FilePath* eula_path) {
std::string terms = l10n_util::GetStringUTF8(IDS_TERMS_HTML);
return (!terms.empty() &&
base::CreateTemporaryFile(eula_path) &&
- file_util::WriteFile(*eula_path, terms.data(), terms.size()) != -1);
+ base::WriteFile(*eula_path, terms.data(), terms.size()) != -1);
}
// Creates the sentinel indicating that the EULA was required and has been
@@ -119,7 +119,7 @@ bool CreateEULASentinel() {
return false;
return (base::CreateDirectory(eula_sentinel.DirName()) &&
- file_util::WriteFile(eula_sentinel, "", 0) != -1);
+ base::WriteFile(eula_sentinel, "", 0) != -1);
}
} // namespace