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

Unified Diff: content/renderer/pepper/pepper_webplugin_impl.cc

Issue 2599713002: Use explicit WebString <-> string{16,} conversion methods in content/renderer/pepper (Closed)
Patch Set: . Created 4 years 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/pepper/pepper_webplugin_impl.cc
diff --git a/content/renderer/pepper/pepper_webplugin_impl.cc b/content/renderer/pepper/pepper_webplugin_impl.cc
index 54d2247c67df657fc37275e1a86e910e62f07de8..d4da6b5ec853c1f57b8515dd439abbcb126d88e6 100644
--- a/content/renderer/pepper/pepper_webplugin_impl.cc
+++ b/content/renderer/pepper/pepper_webplugin_impl.cc
@@ -247,11 +247,11 @@ bool PepperWebPluginImpl::hasSelection() const {
}
WebString PepperWebPluginImpl::selectionAsText() const {
- return instance_->GetSelectedText(false);
+ return WebString::fromUTF16(instance_->GetSelectedText(false));
}
WebString PepperWebPluginImpl::selectionAsMarkup() const {
- return instance_->GetSelectedText(true);
+ return WebString::fromUTF16(instance_->GetSelectedText(true));
}
WebURL PepperWebPluginImpl::linkAtPosition(const WebPoint& position) const {
@@ -261,7 +261,7 @@ WebURL PepperWebPluginImpl::linkAtPosition(const WebPoint& position) const {
bool PepperWebPluginImpl::startFind(const blink::WebString& search_text,
bool case_sensitive,
int identifier) {
- return instance_->StartFind(search_text, case_sensitive, identifier);
+ return instance_->StartFind(search_text.utf8(), case_sensitive, identifier);
}
void PepperWebPluginImpl::selectFindResult(bool forward, int identifier) {

Powered by Google App Engine
This is Rietveld 408576698