| 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 29dad7c8cb9d0d7d9f2b5fe40da9b5f45c618499..6c8f3466992ae1c6aaae7842568cdbe1f6007933 100644
|
| --- a/chrome/browser/component_updater/pepper_flash_component_installer.cc
|
| +++ b/chrome/browser/component_updater/pepper_flash_component_installer.cc
|
| @@ -340,7 +340,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 {
|
|
|