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

Unified Diff: Source/bindings/v8/SerializedScriptValue.cpp

Issue 429233002: Merge 178823 "Replace further questionable HashMap::add usages i..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2062/
Patch Set: Created 6 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
« no previous file with comments | « Source/bindings/v8/DOMWrapperMap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/SerializedScriptValue.cpp
===================================================================
--- Source/bindings/v8/SerializedScriptValue.cpp (revision 179237)
+++ Source/bindings/v8/SerializedScriptValue.cpp (working copy)
@@ -1282,7 +1282,7 @@
if (blob->hasBeenClosed())
return handleError(DataCloneError, "A Blob object has been closed, and could therefore not be cloned.", next);
int blobIndex = -1;
- m_blobDataHandles.add(blob->uuid(), blob->blobDataHandle());
+ m_blobDataHandles.set(blob->uuid(), blob->blobDataHandle());
if (appendBlobInfo(blob->uuid(), blob->type(), blob->size(), &blobIndex))
m_writer.writeBlobIndex(blobIndex);
else
@@ -1309,7 +1309,7 @@
if (file->hasBeenClosed())
return handleError(DataCloneError, "A File object has been closed, and could therefore not be cloned.", next);
int blobIndex = -1;
- m_blobDataHandles.add(file->uuid(), file->blobDataHandle());
+ m_blobDataHandles.set(file->uuid(), file->blobDataHandle());
if (appendFileInfo(file, &blobIndex)) {
ASSERT(blobIndex >= 0);
m_writer.writeFileIndex(blobIndex);
@@ -1331,7 +1331,7 @@
const File* file = fileList->item(i);
if (file->hasBeenClosed())
return handleError(DataCloneError, "A File object has been closed, and could therefore not be cloned.", next);
- m_blobDataHandles.add(file->uuid(), file->blobDataHandle());
+ m_blobDataHandles.set(file->uuid(), file->blobDataHandle());
if (appendFileInfo(file, &blobIndex)) {
ASSERT(!i || blobIndex > 0);
ASSERT(blobIndex >= 0);
« no previous file with comments | « Source/bindings/v8/DOMWrapperMap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698