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

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

Issue 11577031: Exclude more plugins code for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 0a3c1bd9f78f75a8350e9a7e3fcd7181beb6bf58..3f16afc132a731dbc1d9155733bc00f0f5c4e6de 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -1108,6 +1108,7 @@ void ExtensionService::NotifyExtensionLoaded(const Extension* extension) {
AddDataSource(thumbnail_source);
}
+#if defined(ENABLE_PLUGINS)
// TODO(mpcomplete): This ends up affecting all profiles. See crbug.com/80757.
bool plugins_changed = false;
for (size_t i = 0; i < extension->plugins().size(); ++i) {
@@ -1138,6 +1139,7 @@ void ExtensionService::NotifyExtensionLoaded(const Extension* extension) {
if (plugins_changed || nacl_modules_changed)
PluginService::GetInstance()->PurgePluginListCache(profile_, false);
+#endif // defined(ENABLE_PLUGINS)
#if defined(OS_CHROMEOS)
for (std::vector<Extension::InputComponentInfo>::const_iterator component =
@@ -1206,6 +1208,7 @@ void ExtensionService::NotifyExtensionUnloaded(
UpdateActiveExtensionsInCrashReporter();
+#if defined(ENABLE_PLUGINS)
bool plugins_changed = false;
for (size_t i = 0; i < extension->plugins().size(); ++i) {
const Extension::PluginInfo& plugin = extension->plugins()[i];
@@ -1228,6 +1231,7 @@ void ExtensionService::NotifyExtensionUnloaded(
if (plugins_changed || nacl_modules_changed)
PluginService::GetInstance()->PurgePluginListCache(profile_, false);
+#endif // defined(ENABLE_PLUGINS)
}
Profile* ExtensionService::profile() {

Powered by Google App Engine
This is Rietveld 408576698