| Index: content/common/indexed_db/indexed_db_key_range.cc
|
| diff --git a/content/common/indexed_db/indexed_db_key_range.cc b/content/common/indexed_db/indexed_db_key_range.cc
|
| index d061363fbde4c1baac4147da00eb091b0a9b96fb..b9b79dfd0267410e23a6b5018d336a1f5a727d6d 100644
|
| --- a/content/common/indexed_db/indexed_db_key_range.cc
|
| +++ b/content/common/indexed_db/indexed_db_key_range.cc
|
| @@ -35,8 +35,14 @@ IndexedDBKeyRange& IndexedDBKeyRange::operator=(
|
| bool IndexedDBKeyRange::IsOnlyKey() const {
|
| if (lower_open_ || upper_open_)
|
| return false;
|
| + if (IsEmpty())
|
| + return false;
|
|
|
| return lower_.Equals(upper_);
|
| }
|
|
|
| +bool IndexedDBKeyRange::IsEmpty() const {
|
| + return !lower_.IsValid() && !upper_.IsValid();
|
| +}
|
| +
|
| } // namespace content
|
|
|