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

Unified Diff: chrome/browser/chromeos/input_method/input_method_property.cc

Issue 10025015: Add operator= to InputMethodProperty. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added operator!= per offline discussion Created 8 years, 8 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/browser/chromeos/input_method/input_method_property.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_property.cc b/chrome/browser/chromeos/input_method/input_method_property.cc
index 8580eba7b8fa90a07dff78368f079f2b548d21ff..caab50edbbdd223648e1d5d3772d40e588afb7bc 100644
--- a/chrome/browser/chromeos/input_method/input_method_property.cc
+++ b/chrome/browser/chromeos/input_method/input_method_property.cc
@@ -33,6 +33,18 @@ InputMethodProperty::InputMethodProperty()
InputMethodProperty::~InputMethodProperty() {
}
+bool InputMethodProperty::operator==(const InputMethodProperty& other) const {
+ return key == other.key &&
+ label == other.label &&
+ is_selection_item == other.is_selection_item &&
+ is_selection_item_checked == other.is_selection_item_checked &&
+ selection_item_id == other.selection_item_id;
+}
+
+bool InputMethodProperty::operator!=(const InputMethodProperty& other) const {
+ return !(*this == other);
+}
+
std::string InputMethodProperty::ToString() const {
std::stringstream stream;
stream << "key=" << key

Powered by Google App Engine
This is Rietveld 408576698