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

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

Issue 320833002: [IndexedDB] Use consistent enums on both sides of IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase patch. Created 6 years, 6 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_dispatcher_host.cc
diff --git a/content/browser/indexed_db/indexed_db_dispatcher_host.cc b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
index 47265d5c98651d5bdb168940d7dff6b7ad9a03ba..c1b1d2177ac9647aa4416a91b409170581f43a97 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.cc
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
@@ -664,15 +664,14 @@ void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnPut(
IndexedDBValue value;
value.bits = params.value;
value.blob_info.swap(blob_info);
- connection->database()->Put(
- host_transaction_id,
- params.object_store_id,
- &value,
- &scoped_handles,
- make_scoped_ptr(new IndexedDBKey(params.key)),
- static_cast<IndexedDBDatabase::PutMode>(params.put_mode),
- callbacks,
- params.index_keys);
+ connection->database()->Put(host_transaction_id,
+ params.object_store_id,
+ &value,
+ &scoped_handles,
+ make_scoped_ptr(new IndexedDBKey(params.key)),
+ params.put_mode,
+ callbacks,
+ params.index_keys);
TransactionIDToSizeMap* map =
&parent_->database_dispatcher_host_->transaction_size_map_;
// Size can't be big enough to overflow because it represents the
@@ -729,9 +728,9 @@ void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnOpenCursor(
params.object_store_id,
params.index_id,
make_scoped_ptr(new IndexedDBKeyRange(params.key_range)),
- static_cast<indexed_db::CursorDirection>(params.direction),
+ params.direction,
params.key_only,
- static_cast<IndexedDBDatabase::TaskType>(params.task_type),
+ params.task_type,
callbacks);
}
« no previous file with comments | « content/browser/indexed_db/indexed_db_database_unittest.cc ('k') | content/browser/indexed_db/indexed_db_fake_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698