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 ee7070bc6d5a0a7112b75281266591675f2868ef..fc422c4036ae6d041b0e92afa58de2bbf9653504 100644 |
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.cc |
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.cc |
@@ -4,8 +4,6 @@ |
#include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
-#include <vector> |
- |
#include "base/bind.h" |
#include "base/command_line.h" |
#include "base/files/file_path.h" |
@@ -529,7 +527,9 @@ void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnPut( |
int64 host_transaction_id = parent_->HostTransactionId(params.transaction_id); |
// TODO(alecflett): Avoid a copy here. |
- std::vector<char> value_copy = params.value; |
+ std::string value_copy; |
+ if (!params.value.empty()) |
+ value_copy = std::string(&*params.value.begin(), params.value.size()); |
connection->database()->Put( |
host_transaction_id, |
params.object_store_id, |