Index: base/i18n/rtl.h |
diff --git a/base/i18n/rtl.h b/base/i18n/rtl.h |
index 5159b465fbd5d6286b087aa4a866b942f6b64044..85ecf581a054b123718bda929927acc7656b6526 100644 |
--- a/base/i18n/rtl.h |
+++ b/base/i18n/rtl.h |
@@ -43,6 +43,11 @@ class String16WithDirection { |
const string16& string() const { return string_; } |
TextDirection direction() const { return direction_; } |
+ bool is_empty() const { return string_.empty(); } |
+ bool operator==(const String16WithDirection& other) const { |
+ return string_ == other.string_ && direction_ == other.direction_; |
+ } |
+ |
private: |
string16 string_; |
TextDirection direction_; |