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

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 8917028: Add BrowserThread::PostTaskOnIOThread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « content/browser/browser_thread_impl.cc ('k') | content/public/browser/browser_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_win.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_win.cc b/content/browser/renderer_host/render_widget_host_view_win.cc
index 3b64a30b48d5b12802af440afe95db9ee83a413c..77a6f0b06d245ea7d90f8bd836ca90525f00dbbb 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc
@@ -548,8 +548,7 @@ HWND RenderWidgetHostViewWin::ReparentWindow(HWND window) {
// How many times we try to find a PluginProcessHost whose process matches
// the HWND.
static const int kMaxTries = 5;
- BrowserThread::PostTask(
- BrowserThread::IO,
+ BrowserThread::PostTaskOnIOThread(
darin (slow to review) 2011/12/13 00:51:35 given how small this change is, maybe the PostTask
FROM_HERE,
base::Bind(&NotifyPluginProcessHostHelper, window, parent, kMaxTries));
return parent;
@@ -2053,8 +2052,7 @@ void RenderWidgetHostViewWin::AcceleratedSurfaceBuffersSwapped(
accelerated_surface_->AsyncPresentAndAcknowledge(
params.size,
params.surface_id,
- base::Bind(BrowserThread::PostTask,
- BrowserThread::IO,
+ base::Bind(BrowserThread::PostTaskOnIOThread,
FROM_HERE,
acknowledge_task));
} else {
« no previous file with comments | « content/browser/browser_thread_impl.cc ('k') | content/public/browser/browser_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698