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

Unified Diff: content/renderer/pepper/url_request_info_util.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/url_request_info_util.cc
diff --git a/content/renderer/pepper/url_request_info_util.cc b/content/renderer/pepper/url_request_info_util.cc
index 952994a6b02eec9120455ce4ea55c636256fc38a..b5cd64bd997cef50d6467ab66ad371dc2828f59d 100644
--- a/content/renderer/pepper/url_request_info_util.cc
+++ b/content/renderer/pepper/url_request_info_util.cc
@@ -24,6 +24,7 @@
#include "ppapi/shared_impl/url_request_info_data.h"
#include "ppapi/shared_impl/var.h"
#include "ppapi/thunk/enter.h"
+#include "third_party/WebKit/public/platform/FilePathConversion.h"
#include "third_party/WebKit/public/platform/WebData.h"
#include "third_party/WebKit/public/platform/WebHTTPBody.h"
#include "third_party/WebKit/public/platform/WebURL.h"
@@ -86,9 +87,8 @@ bool AppendFileRefToBody(PP_Instance instance,
default:
NOTREACHED();
}
- http_body->appendFileRange(platform_path.AsUTF16Unsafe(),
- start_offset,
- number_of_bytes,
+ http_body->appendFileRange(blink::FilePathToWebString(platform_path),
+ start_offset, number_of_bytes,
expected_last_modified_time);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698