| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/version_info/version_info.h" | 5 #include "components/version_info/version_info.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "components/version_info/version_info_values.h" | 8 #include "components/version_info/version_info_values.h" |
| 9 #include "grit/components_strings.h" | 9 #include "grit/components_strings.h" |
| 10 | 10 |
| 11 #if defined(USE_UNOFFICIAL_VERSION_NUMBER) | 11 #if defined(USE_UNOFFICIAL_VERSION_NUMBER) |
| 12 #include "ui/base/l10n/l10n_util.h" // nogncheck | 12 #include "ui/base/l10n/l10n_util.h" |
| 13 #endif // USE_UNOFFICIAL_VERSION_NUMBER | 13 #endif // USE_UNOFFICIAL_VERSION_NUMBER |
| 14 | 14 |
| 15 namespace version_info { | 15 namespace version_info { |
| 16 | 16 |
| 17 std::string GetProductNameAndVersionForUserAgent() { | 17 std::string GetProductNameAndVersionForUserAgent() { |
| 18 return "Chrome/" + GetVersionNumber(); | 18 return "Chrome/" + GetVersionNumber(); |
| 19 } | 19 } |
| 20 | 20 |
| 21 std::string GetProductName() { | 21 std::string GetProductName() { |
| 22 return PRODUCT_NAME; | 22 return PRODUCT_NAME; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 current_version += " "; | 94 current_version += " "; |
| 95 current_version += GetOSType(); | 95 current_version += GetOSType(); |
| 96 current_version += ")"; | 96 current_version += ")"; |
| 97 #endif // USE_UNOFFICIAL_VERSION_NUMBER | 97 #endif // USE_UNOFFICIAL_VERSION_NUMBER |
| 98 if (!modifier.empty()) | 98 if (!modifier.empty()) |
| 99 current_version += " " + modifier; | 99 current_version += " " + modifier; |
| 100 return current_version; | 100 return current_version; |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace version_info | 103 } // namespace version_info |
| OLD | NEW |