| 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 cedf5390edb2d6a0c5d0b0a8188582e68527e4af..82bd55a4a0fbdbbaa6be75eba0ca8c0685057cd7 100644
|
| --- a/chrome/browser/component_updater/pepper_flash_component_installer.cc
|
| +++ b/chrome/browser/component_updater/pepper_flash_component_installer.cc
|
| @@ -178,12 +178,13 @@ void RegisterPepperFlashWithChrome(const FilePath& path,
|
| content::PepperPluginInfo plugin_info;
|
| if (!MakePepperFlashPluginInfo(path, version, true, &plugin_info))
|
| return;
|
| - if (fresh_install) {
|
| - PluginPrefs::EnablePluginGlobally(IsPepperFlashEnabledByDefault(),
|
| - plugin_info.path);
|
| - }
|
| + bool enable_by_default = IsPepperFlashEnabledByDefault();
|
| + if (fresh_install)
|
| + PluginPrefs::EnablePluginGlobally(enable_by_default, plugin_info.path);
|
| +
|
| + bool add_to_front = enable_by_default;
|
| PluginService::GetInstance()->RegisterInternalPlugin(
|
| - plugin_info.ToWebPluginInfo(), false);
|
| + plugin_info.ToWebPluginInfo(), add_to_front);
|
| PluginService::GetInstance()->RefreshPlugins();
|
| }
|
|
|
|
|