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

Unified Diff: chrome/common/pepper_plugin_registry.cc

Issue 6117005: Adds the x-nacl to the MIME types recognized by the Pepper NaCl plug-in. Anot... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/pepper_plugin_registry.cc
===================================================================
--- chrome/common/pepper_plugin_registry.cc (revision 70935)
+++ chrome/common/pepper_plugin_registry.cc (working copy)
@@ -23,7 +23,7 @@
const char* PepperPluginRegistry::kNaClPluginName = "Chrome NaCl";
const char* PepperPluginRegistry::kNaClPluginMimeType =
- "application/x-ppapi-nacl-srpc";
+ "application/x-nacl";
abarth-chromium 2011/01/11 01:01:13 Much nicer!
const char* PepperPluginRegistry::kNaClPluginExtension = "nexe";
const char* PepperPluginRegistry::kNaClPluginDescription =
"Native Client Executable";
@@ -162,6 +162,12 @@
nacl.path = path;
nacl.name = kNaClPluginName;
nacl.mime_types.push_back(kNaClPluginMimeType);
+
+ // TODO(bbudge) Remove this mime type after NaCl tree has been updated.
+ const char* kNaClPluginOldMimeType =
+ "application/x-ppapi-nacl-srpc";
+ nacl.mime_types.push_back(kNaClPluginOldMimeType);
+
nacl.file_extensions = kNaClPluginExtension;
nacl.type_descriptions = kNaClPluginDescription;
plugins->push_back(nacl);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698