Index: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
index 84a94fe37e04f57b7df727b6789e1743a5e1605f..0c6dbef0d0db5010ff49a96711f4de95dc5b3ea6 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp |
@@ -412,7 +412,7 @@ Response InspectorLayerTreeAgent::releaseSnapshot(const String& snapshotId) { |
SnapshotById::iterator it = m_snapshotById.find(snapshotId); |
if (it == m_snapshotById.end()) |
return Response::Error("Snapshot not found"); |
- m_snapshotById.remove(it); |
+ m_snapshotById.erase(it); |
return Response::OK(); |
} |