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

Unified Diff: content/browser/plugin_process_host.cc

Issue 6995082: Fix a browser, renderer, plugin deadlock caused by the change to reparent plugin windows in the b... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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: content/browser/plugin_process_host.cc
===================================================================
--- content/browser/plugin_process_host.cc (revision 88161)
+++ content/browser/plugin_process_host.cc (working copy)
@@ -72,12 +72,18 @@
return;
if (webkit::npapi::WebPluginDelegateImpl::IsDummyActivationWindow(window)) {
- ::SetWindowLongPtr(window, GWL_STYLE, WS_CHILD);
+ BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
+ NewRunnableFunction(::SetWindowLongPtr, window, GWL_STYLE, WS_CHILD));
} else {
- ::SetWindowLongPtr(window, GWL_STYLE, WS_CHILD | WS_CLIPCHILDREN |
- WS_CLIPSIBLINGS);
+ BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
+ NewRunnableFunction(::SetWindowLongPtr, window, GWL_STYLE,
+ WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS));
}
- ::SetParent(window, parent);
+ BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
+ NewRunnableFunction(::SetParent, window, parent));
cpu_(ooo_6.6-7.5) 2011/06/08 18:04:31 Is not easier to just make a single function that
ananta 2011/06/08 18:10:47 Done.
}
#endif // defined(OS_WIN)
« 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