| 1583 | } |
| 1584 | |
| 1585 | bool ApplicationVersion::VersionLt(const ApplicationVersion& other_version) const { |
| 1586 | if (application_ != other_version.application_) return false; |
| 1587 | |
| 1588 | if (version.major < other_version.version.major) return true; |
| 1589 | if (version.major > other_version.version.major) return false; |
| 1590 | DCHECK_EQ(version.major, other_version.version.major); |
| 1591 | if (version.minor < other_version.version.minor) return true; |
| 1592 | if (version.minor > other_version.version.minor) return false; |
| 1593 | DCHECK_EQ(version.minor, other_version.version.minor); |
| 1594 | return version.patch < other_version.version.patch; |
| 1595 | } |
| 1596 | |
| 1597 | bool ApplicationVersion::VersionEq(const ApplicationVersion& other_version) const { |
| 1598 | return application_ == other_version.application_ && |
no outgoing calls