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

Unified Diff: chrome/browser/net/crl_set_fetcher.cc

Issue 184563006: Move WriteFile and WriteFileDescriptor from file_util to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
Index: chrome/browser/net/crl_set_fetcher.cc
diff --git a/chrome/browser/net/crl_set_fetcher.cc b/chrome/browser/net/crl_set_fetcher.cc
index 6c62bcffd41478e2be9d05041e0fef2de18810a3..201faf9b9371d13a0cd9d786f84a747540426c44 100644
--- a/chrome/browser/net/crl_set_fetcher.cc
+++ b/chrome/browser/net/crl_set_fetcher.cc
@@ -171,7 +171,7 @@ bool CRLSetFetcher::Install(const base::DictionaryValue& manifest,
return false;
}
int size = base::checked_cast<int>(crl_set_bytes.size());
- if (file_util::WriteFile(save_to, crl_set_bytes.data(), size) != size) {
+ if (base::WriteFile(save_to, crl_set_bytes.data(), size) != size) {
LOG(WARNING) << "Failed to save new CRL set to disk";
// We don't return false here because we can still use this CRL set. When
// we restart we might revert to an older version, then we'll
@@ -187,7 +187,7 @@ bool CRLSetFetcher::Install(const base::DictionaryValue& manifest,
<< "->#" << new_crl_set->sequence();
const std::string new_crl_set_bytes = new_crl_set->Serialize();
int size = base::checked_cast<int>(new_crl_set_bytes.size());
- if (file_util::WriteFile(save_to, new_crl_set_bytes.data(), size) != size) {
+ if (base::WriteFile(save_to, new_crl_set_bytes.data(), size) != size) {
LOG(WARNING) << "Failed to save new CRL set to disk";
// We don't return false here because we can still use this CRL set. When
// we restart we might revert to an older version, then we'll
« no previous file with comments | « chrome/browser/nacl_host/test/mock_nacl_gdb.cc ('k') | chrome/browser/parsers/metadata_parser_filebase_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698