| Index: chrome/browser/component_updater/pepper_flash_component_installer.cc
|
| diff --git a/chrome/browser/component_updater/pepper_flash_component_installer.cc b/chrome/browser/component_updater/pepper_flash_component_installer.cc
|
| index 086d405ddd8b4925401485619d0c20ab26ca184d..9f79c13686bac4173ba27df6ff813659aad7e36d 100644
|
| --- a/chrome/browser/component_updater/pepper_flash_component_installer.cc
|
| +++ b/chrome/browser/component_updater/pepper_flash_component_installer.cc
|
| @@ -341,7 +341,16 @@ std::string FlashComponentInstallerTraits::GetName() const {
|
|
|
| update_client::InstallerAttributes
|
| FlashComponentInstallerTraits::GetInstallerAttributes() const {
|
| - return update_client::InstallerAttributes();
|
| + // For Chrome OS, send the built-in flash player version to the server,
|
| + // otherwise it will serve component updates of outdated flash players.
|
| + update_client::InstallerAttributes attrs;
|
| +#if defined(OS_CHROMEOS)
|
| + const std::string flash_version =
|
| + base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
|
| + switches::kPpapiFlashVersion);
|
| + attrs["built_in_version"] = flash_version;
|
| +#endif // #defined(OS_CHROMEOS)
|
| + return attrs;
|
| }
|
|
|
| std::vector<std::string> FlashComponentInstallerTraits::GetMimeTypes() const {
|
|
|