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

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

Issue 18075008: IndexedDB: Switch key/value handling from vector<char> to std::string (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove C++11ism 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_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..a7c164d52929aebe7add2b7ba2c7aa9c0dae6b78 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,7 @@ 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(params.value);
connection->database()->Put(
host_transaction_id,
params.object_store_id,

Powered by Google App Engine
This is Rietveld 408576698