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

Unified Diff: chrome/common/default_plugin.cc

Issue 8493026: Revert r108760 / reland r108744, r108753 w/ fix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename plugin list accessor to plugin_list() Created 9 years, 1 month 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/common/default_plugin.h ('k') | chrome/plugin/chrome_content_plugin_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/default_plugin.cc
diff --git a/chrome/common/default_plugin.cc b/chrome/common/default_plugin.cc
deleted file mode 100644
index b9b8fabbb99e4a58d934da87493d7b4155aed695..0000000000000000000000000000000000000000
--- a/chrome/common/default_plugin.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/utf_string_conversions.h"
-#include "chrome/common/default_plugin.h"
-#include "chrome/default_plugin/plugin_main.h"
-#include "webkit/plugins/npapi/plugin_list.h"
-
-namespace chrome {
-
-void RegisterInternalDefaultPlugin() {
-#if defined(OS_WIN) && !defined(USE_AURA)
- // TODO(bauerb): On Windows the default plug-in can download and install
- // missing plug-ins, which we don't support in the browser yet, so keep
- // using the default plug-in on Windows until we do.
- // Aura isn't going to support NPAPI plugins.
- const webkit::npapi::PluginEntryPoints entry_points = {
-#if !defined(OS_POSIX) || defined(OS_MACOSX)
- default_plugin::NP_GetEntryPoints,
-#endif
- default_plugin::NP_Initialize,
- default_plugin::NP_Shutdown
- };
-
- webkit::WebPluginInfo info;
- info.path = FilePath(webkit::npapi::kDefaultPluginLibraryName);
- info.name = ASCIIToUTF16("Default Plug-in");
- info.version = ASCIIToUTF16("1");
- info.desc = ASCIIToUTF16("Provides functionality for installing third-party "
- "plug-ins");
-
- webkit::WebPluginMimeType mimeType;
- mimeType.mime_type = "*";
- info.mime_types.push_back(mimeType);
-
- webkit::npapi::PluginList::Singleton()->RegisterInternalPlugin(
- info,
- entry_points,
- false);
-#endif
-}
-
-} // namespace chrome
« no previous file with comments | « chrome/common/default_plugin.h ('k') | chrome/plugin/chrome_content_plugin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698