summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_content_client.cc
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-12 20:44:35 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-12 20:44:35 +0000
commit8617fad76e7f98328a5f860db974117650c1be00 (patch)
treed525b8fc4a79f949e1f147f76210dc780ab4b69b /chrome/common/chrome_content_client.cc
parentb2eef1805f4fc7e0521e1e1cd2ffb4ac8892e7d8 (diff)
downloadchromium_src-8617fad76e7f98328a5f860db974117650c1be00.zip
chromium_src-8617fad76e7f98328a5f860db974117650c1be00.tar.gz
chromium_src-8617fad76e7f98328a5f860db974117650c1be00.tar.bz2
Change the MIME type for the Remoting Viewer, keeping the old one as well, for now.
BUG= TEST= Review URL: http://codereview.chromium.org/6973016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85179 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_content_client.cc')
-rw-r--r--chrome/common/chrome_content_client.cc16
1 files changed, 15 insertions, 1 deletions
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index f5d0e90..ac59d28 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -30,9 +30,18 @@ const char* kNaClPluginDescription = "Native Client Executable";
#if defined(ENABLE_REMOTING)
const char* kRemotingViewerPluginName = "Remoting Viewer";
-const char* kRemotingViewerPluginMimeType = "pepper-application/x-chromoting";
const FilePath::CharType kRemotingViewerPluginPath[] =
FILE_PATH_LITERAL("internal-remoting-viewer");
+#if defined(GOOGLE_CHROME_BUILD)
+const char* kRemotingViewerPluginMimeType =
+ "application/vnd.google-chrome.remoting-viewer";
+#else // CHROMIUM_BUILD
+const char* kRemotingViewerPluginMimeType =
+ "application/vnd.chromium.remoting-viewer";
+#endif
+// TODO(wez): Remove the old MIME-type once client code no longer needs it.
+const char* kRemotingViewerPluginOldMimeType =
+ "pepper-application/x-chromoting";
#endif
const char* kFlashPluginName = "Shockwave Flash";
@@ -107,6 +116,11 @@ void ComputeBuiltInPlugins(std::vector<PepperPluginInfo>* plugins) {
std::string(),
std::string());
info.mime_types.push_back(remoting_mime_type);
+ webkit::npapi::WebPluginMimeType old_remoting_mime_type(
+ kRemotingViewerPluginOldMimeType,
+ std::string(),
+ std::string());
+ info.mime_types.push_back(old_remoting_mime_type);
info.internal_entry_points.get_interface = remoting::PPP_GetInterface;
info.internal_entry_points.initialize_module =
remoting::PPP_InitializeModule;