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

Unified Diff: content/plugin/webplugin_accelerated_surface_proxy_mac.cc

Issue 8601002: base::Bind fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/plugin/plugin_thread.cc ('k') | content/plugin/webplugin_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/plugin/webplugin_accelerated_surface_proxy_mac.cc
diff --git a/content/plugin/webplugin_accelerated_surface_proxy_mac.cc b/content/plugin/webplugin_accelerated_surface_proxy_mac.cc
index c00fa414491f6c0ea81494fc3ef88e8df7930a20..9573a2775b9d4fc5518ee12363745f9fe0971e60 100644
--- a/content/plugin/webplugin_accelerated_surface_proxy_mac.cc
+++ b/content/plugin/webplugin_accelerated_surface_proxy_mac.cc
@@ -6,7 +6,7 @@
#include "content/plugin/webplugin_accelerated_surface_proxy_mac.h"
-#include "base/callback_old.h"
+#include "base/bind.h"
#include "content/plugin/webplugin_proxy.h"
#include "ui/gfx/surface/accelerated_surface_mac.h"
#include "ui/gfx/surface/transport_dib.h"
@@ -27,8 +27,10 @@ WebPluginAcceleratedSurfaceProxy::WebPluginAcceleratedSurfaceProxy(
// Only used for 10.5 support, but harmless on 10.6+.
surface_->SetTransportDIBAllocAndFree(
- NewCallback(plugin_proxy_, &WebPluginProxy::AllocSurfaceDIB),
- NewCallback(plugin_proxy_, &WebPluginProxy::FreeSurfaceDIB));
+ base::Bind(&WebPluginProxy::AllocSurfaceDIB,
+ base::Unretained(plugin_proxy)),
+ base::Bind(&WebPluginProxy::FreeSurfaceDIB,
+ base::Unretained(plugin_proxy)));
}
WebPluginAcceleratedSurfaceProxy::~WebPluginAcceleratedSurfaceProxy() {
« no previous file with comments | « content/plugin/plugin_thread.cc ('k') | content/plugin/webplugin_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698