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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp

Issue 2693433002: Migrate WTF::HashMap::add() to ::insert() [final] (Closed)
Patch Set: more platform-specific references Created 3 years, 10 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: third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
index 6286d7846a7ffd57abed8ac72485fecccc37e519..1c99e565a0b888ca98cf127feab3cfb59a3e6be8 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp
@@ -292,7 +292,7 @@ v8::Local<v8::FunctionTemplate> V8PerIsolateData::findOrCreateOperationTemplate(
v8::Local<v8::FunctionTemplate> templ =
v8::FunctionTemplate::New(isolate(), callback, data, signature, length);
templ->RemovePrototype();
- map.add(key, v8::Eternal<v8::FunctionTemplate>(isolate(), templ));
+ map.insert(key, v8::Eternal<v8::FunctionTemplate>(isolate(), templ));
return templ;
}
@@ -311,7 +311,7 @@ void V8PerIsolateData::setInterfaceTemplate(
const void* key,
v8::Local<v8::FunctionTemplate> value) {
auto& map = selectInterfaceTemplateMap(world);
- map.add(key, v8::Eternal<v8::FunctionTemplate>(isolate(), value));
+ map.insert(key, v8::Eternal<v8::FunctionTemplate>(isolate(), value));
}
v8::Local<v8::Context> V8PerIsolateData::ensureScriptRegexpContext() {

Powered by Google App Engine
This is Rietveld 408576698