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

Unified Diff: net/http/http_cache.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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/http/http_auth_unittest.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache.cc
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
index a2a9dfc6d66b19e05a69b4e4765e6f8a2512db74..27c591d44501dfe84e4cb46e01514692b7a013af 100644
--- a/net/http/http_cache.cc
+++ b/net/http/http_cache.cc
@@ -445,7 +445,7 @@ int HttpCache::CreateBackend(disk_cache::Backend** backend,
// This is the only operation that we can do that is not related to any given
// entry, so we use an empty key for it.
- PendingOp* pending_op = GetPendingOp("");
+ PendingOp* pending_op = GetPendingOp(std::string());
if (pending_op->writer) {
if (!callback.is_null())
pending_op->pending_queue.push_back(item.release());
@@ -477,7 +477,7 @@ int HttpCache::GetBackendForTransaction(Transaction* trans) {
WorkItem* item = new WorkItem(
WI_CREATE_BACKEND, trans, net::CompletionCallback(), NULL);
- PendingOp* pending_op = GetPendingOp("");
+ PendingOp* pending_op = GetPendingOp(std::string());
DCHECK(pending_op->writer);
pending_op->pending_queue.push_back(item);
return ERR_IO_PENDING;
@@ -896,7 +896,7 @@ void HttpCache::RemovePendingTransaction(Transaction* trans) {
return;
if (building_backend_) {
- PendingOpsMap::const_iterator j = pending_ops_.find("");
+ PendingOpsMap::const_iterator j = pending_ops_.find(std::string());
if (j != pending_ops_.end())
found = RemovePendingTransactionFromPendingOp(j->second, trans);
« no previous file with comments | « net/http/http_auth_unittest.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698