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

Unified Diff: content/renderer/menu_item_builder.cc

Issue 2656043002: Use explicit WebString conversions in remaining content files (Closed)
Patch Set: build fix Created 3 years, 11 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: content/renderer/menu_item_builder.cc
diff --git a/content/renderer/menu_item_builder.cc b/content/renderer/menu_item_builder.cc
index d6507d868d824f3ca2da308a569ab39b5f3df0d9..a23624d735ae71f37be60110594dd05288cc24f1 100644
--- a/content/renderer/menu_item_builder.cc
+++ b/content/renderer/menu_item_builder.cc
@@ -13,9 +13,9 @@ namespace content {
MenuItem MenuItemBuilder::Build(const blink::WebMenuItemInfo& item) {
MenuItem result;
- result.label = item.label;
- result.icon = item.icon;
- result.tool_tip = item.toolTip;
+ result.label = item.label.utf16();
+ result.icon = item.icon.utf16();
+ result.tool_tip = item.toolTip.utf16();
result.type = static_cast<MenuItem::Type>(item.type);
result.action = item.action;
result.rtl = (item.textDirection == blink::WebTextDirectionRightToLeft);

Powered by Google App Engine
This is Rietveld 408576698