Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7215)

Unified Diff: chrome/installer/util/channel_info.cc

Issue 6288009: More installer refactoring in the interest of fixing some bugs and cleaning t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {
+ 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_);
}

Powered by Google App Engine
This is Rietveld 408576698