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

Unified Diff: net/test/cert_test_util.cc

Issue 19579005: Move ReadFileToString to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | « net/socket/tcp_client_socket.cc ('k') | net/test/embedded_test_server/embedded_test_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/cert_test_util.cc
diff --git a/net/test/cert_test_util.cc b/net/test/cert_test_util.cc
index 085a4594c7636f47b5a885542dae589f2912dfea..5ec07749d508f5758cce834cbf4fd6d0679550c5 100644
--- a/net/test/cert_test_util.cc
+++ b/net/test/cert_test_util.cc
@@ -19,7 +19,7 @@ CertificateList CreateCertificateListFromFile(
int format) {
base::FilePath cert_path = certs_dir.AppendASCII(cert_file);
std::string cert_data;
- if (!file_util::ReadFileToString(cert_path, &cert_data))
+ if (!base::ReadFileToString(cert_path, &cert_data))
return CertificateList();
return X509Certificate::CreateCertificateListFromBytes(cert_data.data(),
cert_data.size(),
@@ -31,7 +31,7 @@ scoped_refptr<X509Certificate> ImportCertFromFile(
const std::string& cert_file) {
base::FilePath cert_path = certs_dir.AppendASCII(cert_file);
std::string cert_data;
- if (!file_util::ReadFileToString(cert_path, &cert_data))
+ if (!base::ReadFileToString(cert_path, &cert_data))
return NULL;
CertificateList certs_in_file =
« no previous file with comments | « net/socket/tcp_client_socket.cc ('k') | net/test/embedded_test_server/embedded_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698