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

Unified Diff: webkit/plugins/npapi/test/plugin_execute_stream_javascript.cc

Issue 10833017: Fix gcc 4.7 building problems - cont 2. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
Index: webkit/plugins/npapi/test/plugin_execute_stream_javascript.cc
diff --git a/webkit/plugins/npapi/test/plugin_execute_stream_javascript.cc b/webkit/plugins/npapi/test/plugin_execute_stream_javascript.cc
index 860c6b3ef482b079c1940b13c4da61427b70e059..1b8278c25bce6a2bf5b8d1fce3c479725eabab64 100644
--- a/webkit/plugins/npapi/test/plugin_execute_stream_javascript.cc
+++ b/webkit/plugins/npapi/test/plugin_execute_stream_javascript.cc
@@ -39,7 +39,8 @@ int32 ExecuteStreamJavaScript::Write(NPStream *stream, int32 offset, int32 len,
std::string javascript("javascript:");
javascript.append(static_cast<char*>(buffer), len);
agl 2012/07/25 20:32:34 Not your fault, but while you're in the area: add
Han 2012/07/25 22:28:44 Done.
- NPString script_string = { javascript.c_str(), javascript.length() };
+ NPString script_string = { javascript.c_str(),
+ static_cast<uint32_t>(javascript.length()) };
NPObject *window_obj = NULL;
NPAPIClient::PluginClient::HostFunctions()->getvalue(
id(), NPNVWindowNPObject, &window_obj);

Powered by Google App Engine
This is Rietveld 408576698