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

Unified Diff: net/quic/core/quic_server_id.cc

Issue 2591143003: Add QuicStrCat. (Closed)
Patch Set: sync Created 4 years 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/quic/core/quic_multipath_sent_packet_manager.cc ('k') | net/quic/core/quic_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_server_id.cc
diff --git a/net/quic/core/quic_server_id.cc b/net/quic/core/quic_server_id.cc
index ecc8d0e40fd952383a9351412160093773ac44f9..493fccd72f37fbb99e2967ae3e293c99e3ae8622 100644
--- a/net/quic/core/quic_server_id.cc
+++ b/net/quic/core/quic_server_id.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "net/base/host_port_pair.h"
#include "net/base/port_util.h"
+#include "net/quic/platform/api/quic_str_cat.h"
#include "url/gurl.h"
using std::string;
@@ -52,8 +53,8 @@ QuicServerId QuicServerId::FromString(const std::string& str) {
}
string QuicServerId::ToString() const {
- return "https://" + host_port_pair_.ToString() +
- (privacy_mode_ == PRIVACY_MODE_ENABLED ? "/private" : "");
+ return QuicStrCat("https://", host_port_pair_.ToString(),
+ (privacy_mode_ == PRIVACY_MODE_ENABLED ? "/private" : ""));
}
} // namespace net
« no previous file with comments | « net/quic/core/quic_multipath_sent_packet_manager.cc ('k') | net/quic/core/quic_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698