| 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 #ifndef COMPONENTS_VERSION_INFO_VERSION_INFO_H_ | 5 #ifndef COMPONENTS_VERSION_INFO_VERSION_INFO_H_ |
| 6 #define COMPONENTS_VERSION_INFO_VERSION_INFO_H_ | 6 #define COMPONENTS_VERSION_INFO_VERSION_INFO_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "components/version_info/channel.h" | 10 #include "components/version_info/channel.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // GetLastChange() is. | 29 // GetLastChange() is. |
| 30 bool IsOfficialBuild(); | 30 bool IsOfficialBuild(); |
| 31 | 31 |
| 32 // Returns the OS type, e.g. "Windows", "Linux", "FreeBDS", ... | 32 // Returns the OS type, e.g. "Windows", "Linux", "FreeBDS", ... |
| 33 std::string GetOSType(); | 33 std::string GetOSType(); |
| 34 | 34 |
| 35 // Returns a string equivalent of |channel|, indenpendent of whether the build | 35 // Returns a string equivalent of |channel|, indenpendent of whether the build |
| 36 // is branded or not and without any additional modifiers. | 36 // is branded or not and without any additional modifiers. |
| 37 std::string GetChannelString(Channel channel); | 37 std::string GetChannelString(Channel channel); |
| 38 | 38 |
| 39 // Returns a version string to be displayed in "About Chromium" dialog. | |
| 40 // |modifier| is a string representation of the channel with system specific | |
| 41 // information, e.g. "dev SyzyASan". It is appended to the returned version | |
| 42 // information if non-empty. | |
| 43 std::string GetVersionStringWithModifier(const std::string& modifier); | |
| 44 | |
| 45 } // namespace version_info | 39 } // namespace version_info |
| 46 | 40 |
| 47 #endif // COMPONENTS_VERSION_INFO_VERSION_INFO_H_ | 41 #endif // COMPONENTS_VERSION_INFO_VERSION_INFO_H_ |
| OLD | NEW |