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

Unified Diff: visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/common.js

Issue 573823002: [VS Addin] Fix several issues with debugging PPAPI plugins (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 6 years, 3 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: visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/common.js
diff --git a/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/common.js b/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/common.js
index f7df0d83b550c0d5abf7a3f8ff28e10591a2dd24..6901fe76a0523a289c5b2f8bfe54e1d13e206153 100644
--- a/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/common.js
+++ b/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_world_gles/hello_world_gles/common.js
@@ -26,7 +26,10 @@ var common = (function () {
moduleEl.setAttribute('width', width);
moduleEl.setAttribute('height',height);
moduleEl.setAttribute('src', tool + '/' + name + '.nmf');
- moduleEl.setAttribute('type', 'application/x-nacl');
+ if (tool == 'win')
+ moduleEl.setAttribute('type', 'application/x-ppapi');
+ else
+ moduleEl.setAttribute('type', 'application/x-nacl');
// 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