| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |