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

Unified Diff: extensions/renderer/api/automation/automation_api_helper.cc

Issue 2656433005: Use explicit WebString conversions in extensions/ (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api/automation/automation_api_helper.cc
diff --git a/extensions/renderer/api/automation/automation_api_helper.cc b/extensions/renderer/api/automation/automation_api_helper.cc
index 42a493b86cec529afec862ab858b2617905dfcd3..8ffd54a75171d15b8731dbea16fcaeac9fddb4fd 100644
--- a/extensions/renderer/api/automation/automation_api_helper.cc
+++ b/extensions/renderer/api/automation/automation_api_helper.cc
@@ -74,7 +74,7 @@ void AutomationApiHelper::OnQuerySelector(int request_id,
start_node = start_acc_obj.node();
}
}
- blink::WebString web_selector(selector);
+ blink::WebString web_selector = blink::WebString::fromUTF16(selector);
blink::WebElement result_element = start_node.querySelector(web_selector);
int result_acc_obj_id = 0;
if (!result_element.isNull()) {
« no previous file with comments | « no previous file | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698