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

Side by Side Diff: chrome/common/omaha_query_params.cc

Issue 12767006: [Cleanup] Remove StringPrintf from global namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, once more Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/omaha_query_params.h" 5 #include "chrome/common/omaha_query_params.h"
6 6
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "chrome/common/chrome_version_info.h" 8 #include "chrome/common/chrome_version_info.h"
9 9
10 namespace { 10 namespace {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 break; 84 break;
85 } 85 }
86 return kUnknown; 86 return kUnknown;
87 } 87 }
88 88
89 } // namespace 89 } // namespace
90 90
91 namespace chrome { 91 namespace chrome {
92 92
93 std::string OmahaQueryParams::Get(ProdId prod) { 93 std::string OmahaQueryParams::Get(ProdId prod) {
94 return StringPrintf("os=%s&arch=%s&prod=%s&prodchannel=%s&prodversion=%s", 94 return base::StringPrintf(
95 kOs, 95 "os=%s&arch=%s&prod=%s&prodchannel=%s&prodversion=%s",
96 kArch, 96 kOs,
97 GetProdIdString(prod), 97 kArch,
98 GetChannelString(), 98 GetProdIdString(prod),
99 chrome::VersionInfo().Version().c_str()); 99 GetChannelString(),
100 chrome::VersionInfo().Version().c_str());
100 } 101 }
101 102
102 } // namespace chrome 103 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698