Skip to content
Permalink
Browse files

common: set Iridium version / User-Agent

  • Loading branch information
jengelh committed Jul 8, 2015
1 parent 3581a29 commit cd61f5ccc879424685e711bddc33d93ab4f13316
@@ -1,4 +1,4 @@
MAJOR=80
MINOR=0
BUILD=3987
PATCH=149
MAJOR=2020
MINOR=03
BUILD=80
PATCH=0
@@ -16,7 +16,9 @@
namespace version_info {

std::string GetProductNameAndVersionForUserAgent() {
return "Chrome/" + GetVersionNumber();
/* Currently, the Iridium install base is so small that it would make us rather identifiable if we had our own tag. */
return "Chrome/80.0.3987.116";
// return "Iridium/" + GetVersionNumber();
}

std::string GetProductName() {
@@ -6,7 +6,7 @@
#define COMPONENTS_VERSION_INFO_VERSION_INFO_VALUES_H_

#define PRODUCT_NAME "@PRODUCT_FULLNAME@"
#define PRODUCT_VERSION "@MAJOR@.@MINOR@.@BUILD@.@PATCH@"
#define PRODUCT_VERSION "@MAJOR@.@MINOR@"
#define LAST_CHANGE "@LASTCHANGE@"
#define IS_OFFICIAL_BUILD @OFFICIAL_BUILD@

@@ -200,6 +200,8 @@ std::string BuildUserAgentFromOSAndProduct(const std::string& os_info,
product.c_str(),
WEBKIT_VERSION_MAJOR,
WEBKIT_VERSION_MINOR);
if (strncmp(product.c_str(), "Chrome/", 7) != 0)
base::StringAppendF(&user_agent, " Chrome/80.0.3987.149");
return user_agent;
}

@@ -7,7 +7,7 @@
#ifndef EXTENSIONS_SHELL_COMMON_VERSION_H_
#define EXTENSIONS_SHELL_COMMON_VERSION_H_

#define PRODUCT_VERSION "@MAJOR@.@MINOR@.@BUILD@.@PATCH@"
#define PRODUCT_VERSION "@MAJOR@.@MINOR@"
#define LAST_CHANGE "@LASTCHANGE@"

#endif // EXTENSIONS_SHELL_COMMON_VERSION_H_
@@ -80,7 +80,7 @@
'Base histogram. Use suffixes of this histogram instead.')

EXPIRY_DATE_PATTERN = "%Y-%m-%d"
EXPIRY_MILESTONE_RE = re.compile(r'M[0-9]{2,3}\Z')
EXPIRY_MILESTONE_RE = re.compile(r'M[0-9]{2,4}\Z')


_ELEMENT_NODE = xml.dom.minidom.Node.ELEMENT_NODE
@@ -15,8 +15,8 @@
import merge_xml

_DATE_FILE_RE = re.compile(r".*MAJOR_BRANCH_DATE=(.+).*")
_CURRENT_MILESTONE_RE = re.compile(r"MAJOR=([0-9]{2,3})\n")
_MILESTONE_EXPIRY_RE = re.compile(r"\AM([0-9]{2,3})")
_CURRENT_MILESTONE_RE = re.compile(r"MAJOR=([0-9]{2,4})\n")
_MILESTONE_EXPIRY_RE = re.compile(r"\AM([0-9]{2,4})")

_SCRIPT_NAME = "generate_expired_histograms_array.py"
_HASH_DATATYPE = "uint64_t"

0 comments on commit cd61f5c

Please sign in to comment.
You can’t perform that action at this time.