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/tools | |
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/tools')
-rw-r--r-- | chrome/tools/convert_dict/convert_dict_unittest.cc | 4 | ||||
-rw-r--r-- | chrome/tools/profile_reset/jtl_compiler_frontend.cc | 2 | ||||
-rw-r--r-- | chrome/tools/safe_browsing/sb_sigutil.cc | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/chrome/tools/convert_dict/convert_dict_unittest.cc b/chrome/tools/convert_dict/convert_dict_unittest.cc index cbb92ac..eb7ed65 100644 --- a/chrome/tools/convert_dict/convert_dict_unittest.cc +++ b/chrome/tools/convert_dict/convert_dict_unittest.cc @@ -81,11 +81,11 @@ void RunDictionaryTest(const char* codepage, // Create a temporary affix file and a dictionary file from the test data. base::FilePath aff_file; base::CreateTemporaryFile(&aff_file); - file_util::WriteFile(aff_file, aff_data.c_str(), aff_data.length()); + base::WriteFile(aff_file, aff_data.c_str(), aff_data.length()); base::FilePath dic_file; base::CreateTemporaryFile(&dic_file); - file_util::WriteFile(dic_file, dic_data.c_str(), dic_data.length()); + base::WriteFile(dic_file, dic_data.c_str(), dic_data.length()); { // Read the above affix file with AffReader and read the dictionary file diff --git a/chrome/tools/profile_reset/jtl_compiler_frontend.cc b/chrome/tools/profile_reset/jtl_compiler_frontend.cc index abc19446..b172205 100644 --- a/chrome/tools/profile_reset/jtl_compiler_frontend.cc +++ b/chrome/tools/profile_reset/jtl_compiler_frontend.cc @@ -100,7 +100,7 @@ int main(int argc, char* argv[]) { base::FilePath bytecode_path = MakeAbsoluteFilePath(cmd_line->GetSwitchValuePath(kOutputPath)); int bytes_written = - file_util::WriteFile(cmd_line->GetSwitchValuePath(kOutputPath), + base::WriteFile(cmd_line->GetSwitchValuePath(kOutputPath), bytecode.data(), static_cast<int>(bytecode.size())); if (bytes_written != static_cast<int>(bytecode.size())) { diff --git a/chrome/tools/safe_browsing/sb_sigutil.cc b/chrome/tools/safe_browsing/sb_sigutil.cc index 4a6d9db..4d2f75b 100644 --- a/chrome/tools/safe_browsing/sb_sigutil.cc +++ b/chrome/tools/safe_browsing/sb_sigutil.cc @@ -44,7 +44,7 @@ int main(int argc, char* argv[]) { &signature_info); std::string serialized_info = signature_info.SerializeAsString(); - int bytes_written = file_util::WriteFile( + int bytes_written = base::WriteFile( cmd_line->GetSwitchValuePath(kOutputFile), serialized_info.data(), serialized_info.size()); |