summaryrefslogtreecommitdiffstats
path: root/chrome_frame/http_negotiate.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-11 20:03:57 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-11 20:03:57 +0000
commit4d48e55311d19ba96607ffc658acd961abc6f534 (patch)
treed17b1acec53a836937b49e13b9cb5215a77248c1 /chrome_frame/http_negotiate.cc
parent73b8dd223e73499e269deeccf8caaa81ebd75cd0 (diff)
downloadchromium_src-4d48e55311d19ba96607ffc658acd961abc6f534.zip
chromium_src-4d48e55311d19ba96607ffc658acd961abc6f534.tar.gz
chromium_src-4d48e55311d19ba96607ffc658acd961abc6f534.tar.bz2
Fix compile error
Bug=62853 TBR=amit Review URL: http://codereview.chromium.org/4696005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65839 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/http_negotiate.cc')
-rw-r--r--chrome_frame/http_negotiate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome_frame/http_negotiate.cc b/chrome_frame/http_negotiate.cc
index aea995a..b593f28 100644
--- a/chrome_frame/http_negotiate.cc
+++ b/chrome_frame/http_negotiate.cc
@@ -135,6 +135,7 @@ std::string ReplaceOrAddUserAgent(LPCWSTR headers,
DCHECK(headers);
using net::HttpUtil;
+ std::string new_headers;
if (headers) {
std::string ascii_headers(WideToASCII(headers));
@@ -144,7 +145,6 @@ std::string ReplaceOrAddUserAgent(LPCWSTR headers,
// Build new headers, skip the existing user agent value from
// existing headers.
- std::string new_headers;
while (headers_iterator.GetNext()) {
std::string name(headers_iterator.name());
if (!LowerCaseEqualsASCII(name, kLowerCaseUserAgent)) {