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

Unified Diff: native_client_sdk/src/examples/common.js

Issue 10827363: Add Linux Host builds to NaCl SDK (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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: native_client_sdk/src/examples/common.js
===================================================================
--- native_client_sdk/src/examples/common.js (revision 151748)
+++ native_client_sdk/src/examples/common.js (working copy)
@@ -27,6 +27,10 @@
moduleEl.setAttribute('height',height);
moduleEl.setAttribute('src', tool + '/' + config + '/' + name + '.nmf');
moduleEl.setAttribute('type', 'application/x-nacl');
+ if (tool == 'win' || tool == 'linux' || tool == 'mac') {
+ mimename = 'application/x-ppapi-' + config.toLowerCase();
binji 2012/08/16 00:17:52 s/mimename/mimetype/?
noelallen1 2012/08/16 17:58:30 Done.
+ moduleEl.setAttribute('type', mimename);
+ }
// The <EMBED> element is wrapped inside a <DIV>, which has both a 'load'
// and a 'message' event listener attached. This wrapping method is used

Powered by Google App Engine
This is Rietveld 408576698