summaryrefslogtreecommitdiffstats
path: root/chrome_frame
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-19 21:53:19 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-19 21:53:19 +0000
commit5121e678dd8ce395a7562f393d642301944d2408 (patch)
treeb49ecfa695b7df17f820f45f04f323123c89a722 /chrome_frame
parent64ace85b13b3f68f0cc3b8e60e98297fd4fbf5aa (diff)
downloadchromium_src-5121e678dd8ce395a7562f393d642301944d2408.zip
chromium_src-5121e678dd8ce395a7562f393d642301944d2408.tar.gz
chromium_src-5121e678dd8ce395a7562f393d642301944d2408.tar.bz2
Fix a crash which occurs while uploading ChromeFrame metrics. The crash occurs while adding the User Agent
to the outgoing headers. BUG=83291 Review URL: http://codereview.chromium.org/7049023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85981 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r--chrome_frame/metrics_service.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome_frame/metrics_service.cc b/chrome_frame/metrics_service.cc
index 9888d3e..da55b6e 100644
--- a/chrome_frame/metrics_service.cc
+++ b/chrome_frame/metrics_service.cc
@@ -179,7 +179,7 @@ class ChromeFrameMetricsDataUploader : public BSCBImpl {
"%s\r\n",
base::Int64ToString(upload_data_size_).c_str(),
kMetricsType,
- http_utils::GetDefaultUserAgentHeaderWithCFTag());
+ http_utils::GetDefaultUserAgentHeaderWithCFTag().c_str());
*additional_headers = reinterpret_cast<wchar_t*>(
CoTaskMemAlloc((new_headers.size() + 1) * sizeof(wchar_t)));