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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 2147083002: Revert of Rearrange Flash component registration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/component_updater/pepper_flash_component_installer.cc ('k') | no next file » | 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 1fd657878c1a92af509092772fbde5ed99eefb19..57355af2b5fb25e83a2c12238619c9daf1de2928 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -338,10 +338,8 @@
#endif // defined(FLAPPER_AVAILABLE)
return false;
}
-
-// Similar to GetComponentUpdatedPepperFlash, this is used on Linux only because
-// on other platforms the component updater will take responsibility for
-// locating and registering the bundled version of Flash.
+#endif // defined(OS_LINUX)
+
bool GetBundledPepperFlash(content::PepperPluginInfo* plugin) {
#if defined(FLAPPER_AVAILABLE)
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
@@ -367,7 +365,6 @@
return false;
#endif // FLAPPER_AVAILABLE
}
-#endif // defined(OS_LINUX)
bool GetSystemPepperFlash(content::PepperPluginInfo* plugin) {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
@@ -534,12 +531,12 @@
new content::PepperPluginInfo);
if (GetComponentUpdatedPepperFlash(component_flash.get()))
flash_versions.push_back(component_flash.release());
+#endif // defined(OS_LINUX)
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_LINUX)
std::unique_ptr<content::PepperPluginInfo> system_flash(
new content::PepperPluginInfo);
« no previous file with comments | « chrome/browser/component_updater/pepper_flash_component_installer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698