diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-06 20:42:30 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-06 20:42:30 +0000 |
commit | e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e (patch) | |
tree | 480bf91e3cf64d69f837a2f22f8fc868bf17dfdc /chrome/browser/first_run | |
parent | 06b1d42b0ceadd4a70b7462c5c7e6adeb5a18ca4 (diff) | |
download | chromium_src-e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e.zip chromium_src-e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e.tar.gz chromium_src-e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e.tar.bz2 |
Move WriteFile and WriteFileDescriptor from file_util to base namespace.
R=viettrungluu@chromium.org
TBR=viettrungluu
Review URL: https://codereview.chromium.org/184563006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255418 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run')
-rw-r--r-- | chrome/browser/first_run/first_run.cc | 2 | ||||
-rw-r--r-- | chrome/browser/first_run/first_run_browsertest.cc | 3 | ||||
-rw-r--r-- | chrome/browser/first_run/first_run_internal_win.cc | 4 |
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 |