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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 2270243002: Unbundle Flash on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Through #11 Created 4 years, 4 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/BUILD.gn ('k') | chrome/installer/linux/BUILD.gn » ('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 b365e320e5d8b5f4c6708a7b064df7332c570eab..4325cec4d950d46fc8cc2f81088fc2a2b0bf0ac2 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -340,9 +340,8 @@ bool GetComponentUpdatedPepperFlash(content::PepperPluginInfo* plugin) {
}
#endif // defined(OS_LINUX)
-#if defined(OS_CHROMEOS) || defined(OS_LINUX)
-// This should be used on ChromeOS and Linux only - other platforms do not
-// bundle Flash.
+#if defined(OS_CHROMEOS)
+// This should be used on ChromeOS only - other platforms do not bundle Flash.
bool GetBundledPepperFlash(content::PepperPluginInfo* plugin) {
#if defined(FLAPPER_AVAILABLE)
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
@@ -368,7 +367,7 @@ bool GetBundledPepperFlash(content::PepperPluginInfo* plugin) {
return false;
#endif // FLAPPER_AVAILABLE
}
-#endif // defined(OS_CHROMEOS) || defined(OS_LINUX)
+#endif // defined(OS_CHROMEOS)
bool GetSystemPepperFlash(content::PepperPluginInfo* plugin) {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
@@ -537,12 +536,12 @@ void ChromeContentClient::AddPepperPlugins(
flash_versions.push_back(component_flash.release());
#endif // defined(OS_LINUX)
-#if defined(OS_CHROMEOS) || defined(OS_LINUX)
+#if defined(OS_CHROMEOS)
std::unique_ptr<content::PepperPluginInfo> bundled_flash(
new content::PepperPluginInfo);
if (GetBundledPepperFlash(bundled_flash.get()))
flash_versions.push_back(bundled_flash.release());
-#endif // defined(OS_CHROMEOS) || defined(OS_LINUX)
+#endif // defined(OS_CHROMEOS)
std::unique_ptr<content::PepperPluginInfo> system_flash(
new content::PepperPluginInfo);
« no previous file with comments | « chrome/BUILD.gn ('k') | chrome/installer/linux/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698