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

Unified Diff: chrome/browser/io_thread.cc

Issue 420613004: Remove the initial space in the QUIC user agent ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use push_back to append a character. Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index a97a732defdbac634cb85249a145f97c75aaafe9..c8fe59e5dc3a3a6ceb6f3a7079fe948aafd025af 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -1172,7 +1172,8 @@ void IOThread::ConfigureQuicGlobals(
std::string quic_user_agent_id =
chrome::VersionInfo::GetVersionStringModifier();
- quic_user_agent_id.append(1, ' ');
+ if (!quic_user_agent_id.empty())
+ quic_user_agent_id.push_back(' ');
chrome::VersionInfo version_info;
quic_user_agent_id.append(version_info.ProductNameAndVersionForUserAgent());
globals->quic_user_agent_id.set(quic_user_agent_id);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698