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

Unified Diff: net/spdy/spdy_alt_svc_wire_format.cc

Issue 2778043004: Factor out StringAppendF into spdy/platform/. (Closed)
Patch Set: Created 3 years, 9 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/spdy/platform/impl/spdy_string_utils_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_alt_svc_wire_format.cc
diff --git a/net/spdy/spdy_alt_svc_wire_format.cc b/net/spdy/spdy_alt_svc_wire_format.cc
index bc844571a0d87a000bbadc443d96dd27ba93b90f..9097b5be5486d5b8d2aa61ed348ffc12c6934712 100644
--- a/net/spdy/spdy_alt_svc_wire_format.cc
+++ b/net/spdy/spdy_alt_svc_wire_format.cc
@@ -10,7 +10,7 @@
#include "base/logging.h"
#include "base/strings/string_util.h"
diannahu 2017/03/29 15:42:57 Can this be removed?
Bence 2017/03/29 16:56:18 Unfortunately not: it is needed for base::IsHexDig
xunjieli 2017/03/29 17:43:48 I am still concerned about this approach. Does hav
-#include "base/strings/stringprintf.h"
+#include "net/spdy/platform/api/spdy_string_utils.h"
namespace net {
@@ -240,9 +240,9 @@ std::string SpdyAltSvcWireFormat::SerializeHeaderFieldValue(
}
value.push_back(c);
}
- base::StringAppendF(&value, ":%d\"", altsvc.port);
+ SpdyStringAppendF(&value, ":%d\"", altsvc.port);
if (altsvc.max_age != 86400) {
- base::StringAppendF(&value, "; ma=%d", altsvc.max_age);
+ SpdyStringAppendF(&value, "; ma=%d", altsvc.max_age);
}
if (!altsvc.version.empty()) {
value.append("; v=\"");
@@ -251,7 +251,7 @@ std::string SpdyAltSvcWireFormat::SerializeHeaderFieldValue(
if (it != altsvc.version.begin()) {
value.append(",");
}
- base::StringAppendF(&value, "%d", *it);
+ SpdyStringAppendF(&value, "%d", *it);
}
value.append("\"");
}
« no previous file with comments | « net/spdy/platform/impl/spdy_string_utils_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698