summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-22 15:23:34 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-22 15:23:34 +0000
commit0e29223dd481cd628cfc1d07ee6a555c865432a4 (patch)
tree0c03427e5b23d03182d1e6e2f738e713d51ca553 /net
parentaa268f5824938088f59c76b41978180b3e340caf (diff)
downloadchromium_src-0e29223dd481cd628cfc1d07ee6a555c865432a4.zip
chromium_src-0e29223dd481cd628cfc1d07ee6a555c865432a4.tar.gz
chromium_src-0e29223dd481cd628cfc1d07ee6a555c865432a4.tar.bz2
Replace cases of Append(FILE_PATH_LITERAL()) with AppendASCII("").
Review URL: http://codereview.chromium.org/18499 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/base/ssl_test_util.cc14
-rw-r--r--net/disk_cache/disk_cache_perftest.cc10
-rw-r--r--net/proxy/proxy_script_fetcher_unittest.cc6
-rw-r--r--net/tools/tld_cleanup/tld_cleanup.cc2
4 files changed, 16 insertions, 16 deletions
diff --git a/net/base/ssl_test_util.cc b/net/base/ssl_test_util.cc
index 18e3905..d22e4fd 100644
--- a/net/base/ssl_test_util.cc
+++ b/net/base/ssl_test_util.cc
@@ -80,10 +80,10 @@ static CERTCertificate* LoadTemporaryCert(const FilePath& filename) {
SSLTestUtil::SSLTestUtil() {
PathService::Get(base::DIR_SOURCE_ROOT, &cert_dir_);
- cert_dir_ = cert_dir_.Append(FILE_PATH_LITERAL("net"));
- cert_dir_ = cert_dir_.Append(FILE_PATH_LITERAL("data"));
- cert_dir_ = cert_dir_.Append(FILE_PATH_LITERAL("ssl"));
- cert_dir_ = cert_dir_.Append(FILE_PATH_LITERAL("certificates"));
+ cert_dir_ = cert_dir_.AppendASCII("net");
+ cert_dir_ = cert_dir_.AppendASCII("data");
+ cert_dir_ = cert_dir_.AppendASCII("ssl");
+ cert_dir_ = cert_dir_.AppendASCII("certificates");
#if defined(OS_LINUX)
cert_ = reinterpret_cast<PrivateCERTCertificate*>(
@@ -101,19 +101,19 @@ SSLTestUtil::~SSLTestUtil() {
FilePath SSLTestUtil::GetRootCertPath() {
FilePath path(cert_dir_);
- path = path.Append(FILE_PATH_LITERAL("root_ca_cert.crt"));
+ path = path.AppendASCII("root_ca_cert.crt");
return path;
}
FilePath SSLTestUtil::GetOKCertPath() {
FilePath path(cert_dir_);
- path = path.Append(FILE_PATH_LITERAL("ok_cert.pem"));
+ path = path.AppendASCII("ok_cert.pem");
return path;
}
FilePath SSLTestUtil::GetExpiredCertPath() {
FilePath path(cert_dir_);
- path = path.Append(FILE_PATH_LITERAL("expired_cert.pem"));
+ path = path.AppendASCII("expired_cert.pem");
return path;
}
diff --git a/net/disk_cache/disk_cache_perftest.cc b/net/disk_cache/disk_cache_perftest.cc
index 08d0374..0a869b2 100644
--- a/net/disk_cache/disk_cache_perftest.cc
+++ b/net/disk_cache/disk_cache_perftest.cc
@@ -176,15 +176,15 @@ TEST_F(DiskCacheTest, CacheBackendPerformance) {
FilePath path = FilePath::FromWStringHack(path_wstring);
ASSERT_TRUE(file_util::EvictFileFromSystemCache(
- path.Append(FILE_PATH_LITERAL("index"))));
+ path.AppendASCII("index")));
ASSERT_TRUE(file_util::EvictFileFromSystemCache(
- path.Append(FILE_PATH_LITERAL("data_0"))));
+ path.AppendASCII("data_0")));
ASSERT_TRUE(file_util::EvictFileFromSystemCache(
- path.Append(FILE_PATH_LITERAL("data_1"))));
+ path.AppendASCII("data_1")));
ASSERT_TRUE(file_util::EvictFileFromSystemCache(
- path.Append(FILE_PATH_LITERAL("data_2"))));
+ path.AppendASCII("data_2")));
ASSERT_TRUE(file_util::EvictFileFromSystemCache(
- path.Append(FILE_PATH_LITERAL("data_3"))));
+ path.AppendASCII("data_3")));
cache = disk_cache::CreateCacheBackend(path_wstring, false, 0);
ASSERT_TRUE(NULL != cache);
diff --git a/net/proxy/proxy_script_fetcher_unittest.cc b/net/proxy/proxy_script_fetcher_unittest.cc
index 2139b6c..33b31c6 100644
--- a/net/proxy/proxy_script_fetcher_unittest.cc
+++ b/net/proxy/proxy_script_fetcher_unittest.cc
@@ -154,9 +154,9 @@ namespace net {
GURL GetTestFileUrl(const std::string& relpath) {
FilePath path;
PathService::Get(base::DIR_SOURCE_ROOT, &path);
- path = path.Append(FILE_PATH_LITERAL("net"));
- path = path.Append(FILE_PATH_LITERAL("data"));
- path = path.Append(FILE_PATH_LITERAL("proxy_script_fetcher_unittest"));
+ path = path.AppendASCII("net");
+ path = path.AppendASCII("data");
+ path = path.AppendASCII("proxy_script_fetcher_unittest");
GURL base_url = net::FilePathToFileURL(path);
return GURL(base_url.spec() + "/" + relpath);
}
diff --git a/net/tools/tld_cleanup/tld_cleanup.cc b/net/tools/tld_cleanup/tld_cleanup.cc
index 792faad..a33bce6 100644
--- a/net/tools/tld_cleanup/tld_cleanup.cc
+++ b/net/tools/tld_cleanup/tld_cleanup.cc
@@ -212,7 +212,7 @@ int main(int argc, const char* argv[]) {
FilePath log_filename;
PathService::Get(base::DIR_EXE, &log_filename);
- log_filename = log_filename.Append(FILE_PATH_LITERAL("tld_cleanup.log"));
+ log_filename = log_filename.AppendASCII("tld_cleanup.log");
logging::InitLogging(log_filename.value().c_str(),
destination,
logging::LOCK_LOG_FILE,