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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 374773002: Remove GTalk/O1D plugins and related code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 5 years, 8 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 | « chrome/browser/ui/webui/plugins_ui.cc ('k') | chrome/common/chrome_paths.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index 5372f9aa8640e83b07e7d2a85a67e7463039620b..24fff4dd46030e1957943439934a5aaa0a8c714d 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -74,13 +74,6 @@ const char kPDFPluginOutOfProcessMimeType[] =
const uint32 kPDFPluginPermissions = ppapi::PERMISSION_PRIVATE |
ppapi::PERMISSION_DEV;
-const char kO1DPluginName[] = "Google Talk Plugin Video Renderer";
-const char kO1DPluginMimeType[] ="application/o1d";
-const char kO1DPluginExtension[] = "";
-const char kO1DPluginDescription[] = "Google Talk Plugin Video Renderer";
-const uint32 kO1DPluginPermissions = ppapi::PERMISSION_PRIVATE |
- ppapi::PERMISSION_DEV;
-
const char kEffectsPluginName[] = "Google Talk Effects Plugin";
const char kEffectsPluginMimeType[] ="application/x-ppapi-hangouts-effects";
const char kEffectsPluginExtension[] = "";
@@ -88,13 +81,6 @@ const char kEffectsPluginDescription[] = "Google Talk Effects Plugin";
const uint32 kEffectsPluginPermissions = ppapi::PERMISSION_PRIVATE |
ppapi::PERMISSION_DEV;
-const char kGTalkPluginName[] = "Google Talk Plugin";
-const char kGTalkPluginMimeType[] ="application/googletalk";
-const char kGTalkPluginExtension[] = ".googletalk";
-const char kGTalkPluginDescription[] = "Google Talk Plugin";
-const uint32 kGTalkPluginPermissions = ppapi::PERMISSION_PRIVATE |
- ppapi::PERMISSION_DEV;
-
content::PepperPluginInfo::GetInterfaceFunc g_pdf_get_interface;
content::PepperPluginInfo::PPP_InitializeModuleFunc g_pdf_initialize_module;
content::PepperPluginInfo::PPP_ShutdownModuleFunc g_pdf_shutdown_module;
@@ -184,25 +170,6 @@ void ComputeBuiltInPlugins(std::vector<content::PepperPluginInfo>* plugins) {
}
#endif // !defined(DISABLE_NACL)
- static bool skip_o1d_file_check = false;
- if (PathService::Get(chrome::FILE_O1D_PLUGIN, &path)) {
- if (skip_o1d_file_check || base::PathExists(path)) {
- content::PepperPluginInfo o1d;
- o1d.path = path;
- o1d.name = kO1DPluginName;
- o1d.is_out_of_process = true;
- o1d.is_sandboxed = false;
- o1d.permissions = kO1DPluginPermissions;
- content::WebPluginMimeType o1d_mime_type(kO1DPluginMimeType,
- kO1DPluginExtension,
- kO1DPluginDescription);
- o1d.mime_types.push_back(o1d_mime_type);
- plugins->push_back(o1d);
-
- skip_o1d_file_check = true;
- }
- }
-
// TODO(vrk): Remove this when NaCl effects plugin replaces the ppapi effects
// plugin.
static bool skip_effects_file_check = false;
@@ -212,7 +179,6 @@ void ComputeBuiltInPlugins(std::vector<content::PepperPluginInfo>* plugins) {
effects.path = path;
effects.name = kEffectsPluginName;
effects.is_out_of_process = true;
- effects.is_sandboxed = true;
effects.permissions = kEffectsPluginPermissions;
content::WebPluginMimeType effects_mime_type(kEffectsPluginMimeType,
kEffectsPluginExtension,
@@ -224,25 +190,6 @@ void ComputeBuiltInPlugins(std::vector<content::PepperPluginInfo>* plugins) {
}
}
- static bool skip_gtalk_file_check = false;
- if (PathService::Get(chrome::FILE_GTALK_PLUGIN, &path)) {
- if (skip_gtalk_file_check || base::PathExists(path)) {
- content::PepperPluginInfo gtalk;
- gtalk.path = path;
- gtalk.name = kGTalkPluginName;
- gtalk.is_out_of_process = true;
- gtalk.is_sandboxed = false;
- gtalk.permissions = kGTalkPluginPermissions;
- content::WebPluginMimeType gtalk_mime_type(kGTalkPluginMimeType,
- kGTalkPluginExtension,
- kGTalkPluginDescription);
- gtalk.mime_types.push_back(gtalk_mime_type);
- plugins->push_back(gtalk);
-
- skip_gtalk_file_check = true;
- }
- }
-
#if defined(WIDEVINE_CDM_AVAILABLE) && defined(ENABLE_PEPPER_CDMS) && \
!defined(WIDEVINE_CDM_IS_COMPONENT)
static bool skip_widevine_cdm_file_check = false;
« no previous file with comments | « chrome/browser/ui/webui/plugins_ui.cc ('k') | chrome/common/chrome_paths.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698