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

Unified Diff: content/common/indexed_db/indexed_db_key_range.cc

Issue 1074493002: IndexedDB: Added IDBObjectStore.getAll() implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unused indexId/keyOnly parameters to getAll. Created 5 years, 7 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
« no previous file with comments | « content/common/indexed_db/indexed_db_key_range.h ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c2aca9f271554bddb8eabc036739fa57f81b6bb2..f1938bfb2cd71f5ccdcaf77c08d98cfcab74fdb4 100644
--- a/content/common/indexed_db/indexed_db_key_range.cc
+++ b/content/common/indexed_db/indexed_db_key_range.cc
@@ -32,8 +32,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
« no previous file with comments | « content/common/indexed_db/indexed_db_key_range.h ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698