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

Unified Diff: content/renderer/npapi/webplugin_impl.cc

Issue 1259673002: Make UTF16ToASCII and UTF16TOUTF8 take a StringPiece (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « content/renderer/media/rtc_peer_connection_handler.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/npapi/webplugin_impl.cc
diff --git a/content/renderer/npapi/webplugin_impl.cc b/content/renderer/npapi/webplugin_impl.cc
index 4d28f232e9ac7aba153b356f3409276dc7058155..bb42af96991053b25e8a0be9438f46e81242cf6e 100644
--- a/content/renderer/npapi/webplugin_impl.cc
+++ b/content/renderer/npapi/webplugin_impl.cc
@@ -553,7 +553,7 @@ WebPluginImpl::WebPluginImpl(
first_geometry_update_(true),
ignore_response_error_(false),
file_path_(file_path),
- mime_type_(base::UTF16ToASCII(params.mimeType)),
+ mime_type_(base::UTF16ToASCII(base::StringPiece16(params.mimeType))),
loader_client_(this),
weak_factory_(this) {
DCHECK_EQ(params.attributeNames.size(), params.attributeValues.size());
@@ -804,7 +804,8 @@ std::string WebPluginImpl::GetCookies(const GURL& url,
return std::string();
}
- return base::UTF16ToUTF8(cookie_jar->cookies(url, first_party_for_cookies));
+ return base::UTF16ToUTF8(base::StringPiece16(
+ cookie_jar->cookies(url, first_party_for_cookies)));
}
void WebPluginImpl::URLRedirectResponse(bool allow, int resource_id) {
« no previous file with comments | « content/renderer/media/rtc_peer_connection_handler.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698