Chromium Code Reviews| Index: chrome/common/chrome_content_client.cc |
| =================================================================== |
| --- chrome/common/chrome_content_client.cc (revision 96590) |
| +++ chrome/common/chrome_content_client.cc (working copy) |
| @@ -362,6 +362,19 @@ |
| policy->SetJobLevel(sandbox::JOB_UNPROTECTED, 0); |
| policy->SetTokenLevel(sandbox::USER_RESTRICTED_SAME_ACCESS, |
| sandbox::USER_INTERACTIVE); |
| + // Allow the Flash plugin to forward some messages back to Chrome. |
| + if (base::win::GetVersion() == base::win::VERSION_VISTA) { |
|
M-A Ruel
2011/08/12 23:50:05
And what about Windows 7 and later? If it's vista
|
| + typedef BOOL (WINAPI *ChangeWindowMessageFilterFunction)( |
| + UINT message, |
| + DWORD flag); |
| + static ChangeWindowMessageFilterFunction s_ChangeWindowMessageFilter = |
|
M-A Ruel
2011/08/12 23:50:05
Same
|
| + reinterpret_cast<ChangeWindowMessageFilterFunction>( |
| + ::GetProcAddress(::GetModuleHandle(L"user32.dll"), |
| + "ChangeWindowMessageFilter")); |
| + // Per-window message filters required on Win7 or later must be added to: |
| + // render_widget_host_view_win.cc RenderWidgetHostViewWin::ReparentWindow |
| + s_ChangeWindowMessageFilter(WM_MOUSEWHEEL, MSGFLT_ADD); |
| + } |
| policy->SetIntegrityLevel(sandbox::INTEGRITY_LEVEL_LOW); |
| } else { |
| // Could not start the broker, use a very weak policy instead. |