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

Unified Diff: chrome/browser/extensions/plugin_manager.cc

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: chrome/browser/extensions/plugin_manager.cc
diff --git a/chrome/browser/extensions/plugin_manager.cc b/chrome/browser/extensions/plugin_manager.cc
index e86fcb807d07239668a4a4361bb1edfd7f4dc92f..293d527b896e20b557d723f677a3b78b1b517503 100644
--- a/chrome/browser/extensions/plugin_manager.cc
+++ b/chrome/browser/extensions/plugin_manager.cc
@@ -12,8 +12,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/extensions/api/plugins/plugins_handler.h"
-#include "content/public/browser/plugin_service.h"
-#include "content/public/common/pepper_plugin_info.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handlers/mime_types_handler.h"
@@ -23,6 +21,15 @@
#include "components/nacl/common/nacl_constants.h"
#endif
+#if defined(ENABLE_PLUGINS)
+#include "content/public/browser/plugin_service.h"
+#endif
+
+// Disabled due to error: "Plugins should be enabled"
+#if !defined(OS_ANDROID)
+#include "content/public/common/pepper_plugin_info.h"
+#endif
+
using content::PluginService;
namespace extensions {
@@ -172,6 +179,8 @@ void PluginManager::UnregisterNaClModule(const NaClModuleInfo& info) {
}
void PluginManager::UpdatePluginListWithNaClModules() {
+// Disabled due to error: "Plugins should be enabled"
+#if !defined(OS_ANDROID)
// An extension has been added which has a nacl_module component, which means
// there is a MIME type that module wants to handle, so we need to add that
// MIME type to plugins which handle NaCl modules in order to allow the
@@ -217,6 +226,7 @@ void PluginManager::UpdatePluginListWithNaClModules() {
break;
}
}
+#endif
}
NaClModuleInfo::List::iterator PluginManager::FindNaClModule(const GURL& url) {

Powered by Google App Engine
This is Rietveld 408576698