Index: third_party/WebKit/Source/bindings/core/v8/custom/V8DevToolsHostCustom.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8DevToolsHostCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8DevToolsHostCustom.cpp |
index fbc6d6edfe2ca1b81eaee354c9f5c5e7a5c3a95f..d97f7eacd3c7bc05c4d39a928a52cc5b3a877bbb 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8DevToolsHostCustom.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8DevToolsHostCustom.cpp |
@@ -82,9 +82,8 @@ static bool PopulateContextMenuItems(v8::Isolate* isolate, |
continue; |
String type_string = ToCoreStringWithNullCheck(type.As<v8::String>()); |
if (type_string == "separator") { |
- ContextMenuItem item(ContextMenuItem(kSeparatorType, |
- kContextMenuItemCustomTagNoAction, |
- String(), String())); |
+ ContextMenuItem item(ContextMenuItem( |
+ kSeparatorType, kContextMenuItemCustomTagNoAction, String())); |
menu.AppendItem(item); |
} else if (type_string == "subMenu" && sub_items->IsArray()) { |
ContextMenu sub_menu; |
@@ -95,7 +94,7 @@ static bool PopulateContextMenuItems(v8::Isolate* isolate, |
TOSTRING_DEFAULT(V8StringResource<kTreatNullAsNullString>, label_string, |
label, false); |
ContextMenuItem item(kSubmenuType, kContextMenuItemCustomTagNoAction, |
- label_string, String(), &sub_menu); |
+ label_string, &sub_menu); |
menu.AppendItem(item); |
} else { |
int32_t int32_id; |
@@ -107,7 +106,7 @@ static bool PopulateContextMenuItems(v8::Isolate* isolate, |
label, false); |
ContextMenuItem menu_item( |
(type_string == "checkbox" ? kCheckableActionType : kActionType), |
- typed_id, label_string, String()); |
+ typed_id, label_string); |
if (checked->IsBoolean()) |
menu_item.SetChecked(checked.As<v8::Boolean>()->Value()); |
if (enabled->IsBoolean()) |