Chromium Code Reviews| Index: chrome/installer/util/channel_info.cc |
| =================================================================== |
| --- chrome/installer/util/channel_info.cc (revision 71802) |
| +++ chrome/installer/util/channel_info.cc (working copy) |
| @@ -153,6 +153,18 @@ |
| return false; |
| } |
| +bool ChannelInfo::EqualsBaseOf(const ChannelInfo& other) const { |
|
robertshield
2011/01/20 23:36:34
is there a test added for this?
grt (UTC plus 2)
2011/01/21 05:27:51
Done.
|
| + std::wstring::size_type this_base_end; |
| + std::wstring::size_type other_base_end; |
| + |
| + if (!FindModifier(MOD_MULTI_INSTALL, value_, &this_base_end)) |
| + this_base_end = FindInsertionPoint(MOD_MULTI_INSTALL, value_); |
| + if (!FindModifier(MOD_MULTI_INSTALL, other.value_, &other_base_end)) |
| + other_base_end = FindInsertionPoint(MOD_MULTI_INSTALL, other.value_); |
| + return value_.compare(0, this_base_end, |
| + other.value_.c_str(), other_base_end) == 0; |
| +} |
| + |
| bool ChannelInfo::IsCeee() const { |
| return HasModifier(MOD_CEEE, value_); |
| } |