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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 8386011: Remove another manually-bound user32 import (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 2 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 | « no previous file | 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
===================================================================
--- chrome/common/chrome_content_client.cc (revision 108010)
+++ chrome/common/chrome_content_client.cc (working copy)
@@ -241,13 +241,6 @@
::CloseHandle(process);
return true;
}
-
-// Must be dynamically loaded to avoid startup failures on Win XP.
-typedef BOOL (WINAPI *ChangeWindowMessageFilterFunction)(
- UINT message,
- DWORD flag);
-ChangeWindowMessageFilterFunction g_ChangeWindowMessageFilter;
-
#endif // OS_WIN
} // namespace
@@ -358,16 +351,10 @@
sandbox::USER_INTERACTIVE);
// Allow the Flash plugin to forward some messages back to Chrome.
if (base::win::GetVersion() == base::win::VERSION_VISTA) {
- if (!g_ChangeWindowMessageFilter) {
- g_ChangeWindowMessageFilter =
- 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
- g_ChangeWindowMessageFilter(WM_MOUSEWHEEL, MSGFLT_ADD);
- g_ChangeWindowMessageFilter(WM_APPCOMMAND, MSGFLT_ADD);
+ ::ChangeWindowMessageFilter(WM_MOUSEWHEEL, MSGFLT_ADD);
+ ::ChangeWindowMessageFilter(WM_APPCOMMAND, MSGFLT_ADD);
}
policy->SetIntegrityLevel(sandbox::INTEGRITY_LEVEL_LOW);
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698