Index: third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp |
index 363ea9725553cd6ff42f350df410166d946397a7..f80bd8832c8e571782fbbf0ecc6ed4e3a9b9c754 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp |
@@ -1683,7 +1683,7 @@ static const CommandMap& createCommandMap() |
for (size_t i = 0; i < WTF_ARRAY_LENGTH(commands); ++i) { |
const CommandEntry& command = commands[i]; |
ASSERT(!commandMap.get(command.name)); |
- commandMap.set(command.name, &command.command); |
+ commandMap.set(String(command.name), &command.command); |
#if ENABLE(ASSERT) |
ASSERT(!idSet.contains(command.command.idForUserMetrics)); |
idSet.add(command.command.idForUserMetrics); |