diff options
author | andreip@chromium.org <andreip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-28 12:05:41 +0000 |
---|---|---|
committer | andreip@chromium.org <andreip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-28 12:05:41 +0000 |
commit | 5efd99514006cfaea839beb4db5c4239e96f5ed5 (patch) | |
tree | f6ac8bc5e660ab95f5bf0f51f06e19ec06440916 | |
parent | 8c0605c41b4836ff541ace6664c6d688ce476fad (diff) | |
download | chromium_src-5efd99514006cfaea839beb4db5c4239e96f5ed5.zip chromium_src-5efd99514006cfaea839beb4db5c4239e96f5ed5.tar.gz chromium_src-5efd99514006cfaea839beb4db5c4239e96f5ed5.tar.bz2 |
Use vector::push_back() to add object store names to the vector of names and avoid a crash
Review URL: http://codereview.chromium.org/3031026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53933 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc b/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc index f6523a1..352a334 100644 --- a/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc +++ b/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc @@ -306,7 +306,7 @@ void IndexedDBDispatcherHost::DatabaseDispatcherHost::OnObjectStores( std::vector<string16> object_stores; object_stores.reserve(web_object_stores.length()); for (unsigned i = 0; i < web_object_stores.length(); ++i) - object_stores[i] = web_object_stores.item(i); + object_stores.push_back(web_object_stores.item(i)); ViewHostMsg_IDBDatabaseObjectStores::WriteReplyParams(reply_msg, object_stores); parent_->Send(reply_msg); |