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

Unified Diff: content/renderer/browser_plugin/browser_plugin.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/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index 748eb7838e28c10cb1d62ee2a538d45690347b48..9c8869f1fff8ef3497d38f63a08f90766c4ca171 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -142,9 +142,8 @@ void BrowserPlugin::UpdateDOMAttribute(const std::string& attribute_name,
return;
blink::WebElement element = container()->element();
- blink::WebString web_attribute_name =
- blink::WebString::fromUTF8(attribute_name);
- element.setAttribute(web_attribute_name, attribute_value);
+ element.setAttribute(blink::WebString::fromUTF8(attribute_name),
+ blink::WebString::fromUTF16(attribute_value));
}
void BrowserPlugin::Attach() {

Powered by Google App Engine
This is Rietveld 408576698