You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.5 KiB
63 lines
2.5 KiB
2 years ago
|
diff -up chromium-114.0.5735.26/components/version_info/version_info.cc.constexpr-el7 chromium-114.0.5735.26/components/version_info/version_info.cc
|
||
|
diff -up chromium-114.0.5735.26/components/version_info/version_info.h.constexpr-el7 chromium-114.0.5735.26/components/version_info/version_info.h
|
||
|
--- chromium-114.0.5735.26/components/version_info/version_info.h.constexpr-el7 2023-05-11 03:36:19.000000000 +0200
|
||
|
+++ chromium-114.0.5735.26/components/version_info/version_info.h 2023-05-14 10:59:19.921578645 +0200
|
||
|
@@ -27,18 +27,18 @@ const std::string GetProductNameAndVersi
|
||
2 years ago
|
const std::string& build_version);
|
||
|
|
||
|
// Returns the product name, e.g. "Chromium" or "Google Chrome".
|
||
2 years ago
|
-constexpr std::string GetProductName() {
|
||
|
+static const std::string GetProductName() {
|
||
|
return PRODUCT_NAME;
|
||
|
}
|
||
2 years ago
|
|
||
|
// Returns the version number, e.g. "6.0.490.1".
|
||
2 years ago
|
-constexpr std::string GetVersionNumber() {
|
||
|
+static const std::string GetVersionNumber() {
|
||
|
return PRODUCT_VERSION;
|
||
|
}
|
||
|
|
||
|
// Returns the product name and version information for the User-Agent header,
|
||
|
// in the format: Chrome/<major_version>.<minor_version>.<build>.<patch>.
|
||
|
-constexpr std::string GetProductNameAndVersionForUserAgent() {
|
||
|
+static const std::string GetProductNameAndVersionForUserAgent() {
|
||
|
return "Chrome/" + GetVersionNumber();
|
||
|
}
|
||
2 years ago
|
|
||
2 years ago
|
@@ -53,7 +53,7 @@ std::string GetMajorVersionNumber();
|
||
2 years ago
|
const base::Version& GetVersion();
|
||
|
|
||
|
// Returns a version control specific identifier of this release.
|
||
2 years ago
|
-constexpr std::string GetLastChange() {
|
||
|
+static const std::string GetLastChange() {
|
||
|
return LAST_CHANGE;
|
||
|
}
|
||
2 years ago
|
|
||
2 years ago
|
@@ -65,7 +65,7 @@ constexpr bool IsOfficialBuild() {
|
||
|
}
|
||
2 years ago
|
|
||
|
// Returns the OS type, e.g. "Windows", "Linux", "FreeBSD", ...
|
||
2 years ago
|
-constexpr std::string GetOSType() {
|
||
|
+static const std::string GetOSType() {
|
||
|
#if BUILDFLAG(IS_WIN)
|
||
|
return "Windows";
|
||
|
#elif BUILDFLAG(IS_IOS)
|
||
|
@@ -97,7 +97,7 @@ constexpr std::string GetOSType() {
|
||
2 years ago
|
|
||
|
// Returns a string equivalent of |channel|, independent of whether the build
|
||
|
// is branded or not and without any additional modifiers.
|
||
2 years ago
|
-constexpr std::string GetChannelString(Channel channel) {
|
||
|
+static const std::string GetChannelString(Channel channel) {
|
||
|
switch (channel) {
|
||
|
case Channel::STABLE:
|
||
|
return "stable";
|
||
|
@@ -114,7 +114,7 @@ constexpr std::string GetChannelString(C
|
||
|
}
|
||
2 years ago
|
|
||
|
// Returns a list of sanitizers enabled in this build.
|
||
2 years ago
|
-constexpr std::string GetSanitizerList() {
|
||
|
+static const std::string GetSanitizerList() {
|
||
|
return ""
|
||
|
#if defined(ADDRESS_SANITIZER)
|
||
|
"address "
|