summaryrefslogtreecommitdiffstats
path: root/net/spdy
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-31 17:29:25 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-31 17:29:25 +0000
commite83326f8400791e92875546b2fd1885a3a17d1b1 (patch)
treeedbe773208b1a9f6965b45b55da10afd210ea7bb /net/spdy
parent8e0a03bf3b1aacaa7a2bc2561d8eb1b83eb9c2e5 (diff)
downloadchromium_src-e83326f8400791e92875546b2fd1885a3a17d1b1.zip
chromium_src-e83326f8400791e92875546b2fd1885a3a17d1b1.tar.gz
chromium_src-e83326f8400791e92875546b2fd1885a3a17d1b1.tar.bz2
Convert more callers of the integer/string functions to using
string_number_conversions.h TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/3013046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy')
-rw-r--r--net/spdy/spdy_http_stream.cc3
-rw-r--r--net/spdy/spdy_test_util.cc3
2 files changed, 4 insertions, 2 deletions
diff --git a/net/spdy/spdy_http_stream.cc b/net/spdy/spdy_http_stream.cc
index 2d9fe39..6a328cf 100644
--- a/net/spdy/spdy_http_stream.cc
+++ b/net/spdy/spdy_http_stream.cc
@@ -10,6 +10,7 @@
#include "base/logging.h"
#include "base/message_loop.h"
+#include "base/string_number_conversions.h"
#include "base/string_util.h"
#include "net/base/load_flags.h"
#include "net/base/net_util.h"
@@ -118,7 +119,7 @@ void CreateSpdyHeadersFromHttpRequest(
// TODO(lzheng): reduce the code duplication between spdy and http here.
if (info.upload_data) {
(*headers)["content-length"] =
- Int64ToString(info.upload_data->GetContentLength());
+ base::Int64ToString(info.upload_data->GetContentLength());
} else if (info.method == "POST" || info.method == "PUT" ||
info.method == "HEAD") {
// An empty POST/PUT request still needs a content length. As for HEAD,
diff --git a/net/spdy/spdy_test_util.cc b/net/spdy/spdy_test_util.cc
index 2b75b0c..94b9889 100644
--- a/net/spdy/spdy_test_util.cc
+++ b/net/spdy/spdy_test_util.cc
@@ -7,6 +7,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/string_number_conversions.h"
#include "base/string_util.h"
#include "net/http/http_network_transaction.h"
#include "net/spdy/spdy_framer.h"
@@ -410,7 +411,7 @@ spdy::SpdyFrame* ConstructSpdyPost(int64 content_length,
0, // Length
spdy::DATA_FLAG_NONE // Data Flags
};
- std::string length_str = Int64ToString(content_length);
+ std::string length_str = base::Int64ToString(content_length);
const char* post_headers[] = {
"method",
"POST",