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

Unified Diff: content/browser/indexed_db/indexed_db_database.cc

Issue 19442002: Convert to new WebIDBTypes enums and accessors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix content/common/DEPS Created 7 years, 5 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: content/browser/indexed_db/indexed_db_database.cc
diff --git a/content/browser/indexed_db/indexed_db_database.cc b/content/browser/indexed_db/indexed_db_database.cc
index 1ad65578cded993c9441a113eeceba7d60ed5cd3..73d2b883e01f9cfa7067c69b7608948379177bbe 100644
--- a/content/browser/indexed_db/indexed_db_database.cc
+++ b/content/browser/indexed_db/indexed_db_database.cc
@@ -25,7 +25,7 @@
#include "third_party/WebKit/public/platform/WebIDBDatabaseException.h"
using base::Int64ToString16;
-using WebKit::WebIDBKey;
+using WebKit::WebIDBKeyTypeNumber;
namespace content {
@@ -982,7 +982,7 @@ static scoped_ptr<IndexedDBKey> GenerateKey(
return make_scoped_ptr(new IndexedDBKey());
return make_scoped_ptr(
- new IndexedDBKey(current_number, WebIDBKey::NumberType));
+ new IndexedDBKey(current_number, WebIDBKeyTypeNumber));
}
static bool UpdateKeyGenerator(
@@ -993,7 +993,7 @@ static bool UpdateKeyGenerator(
const IndexedDBKey* key,
bool check_current) {
DCHECK(key);
- DCHECK_EQ(WebIDBKey::NumberType, key->type());
+ DCHECK_EQ(WebIDBKeyTypeNumber, key->type());
return backing_store->MaybeUpdateKeyGeneratorCurrentNumber(
transaction->BackingStoreTransaction(),
database_id,
@@ -1136,7 +1136,7 @@ void PutOperation::Perform(IndexedDBTransaction* transaction) {
if (object_store_.auto_increment &&
put_mode_ != IndexedDBDatabase::CURSOR_UPDATE &&
- key->type() == WebIDBKey::NumberType) {
+ key->type() == WebIDBKeyTypeNumber) {
bool ok = UpdateKeyGenerator(backing_store_,
transaction,
database_id_,

Powered by Google App Engine
This is Rietveld 408576698