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

Unified Diff: content/renderer/render_view_impl.cc

Issue 8602012: base::Bind: Convert render_view_impl.cc. (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 | « no previous file | webkit/glue/alt_error_page_resource_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 774e6f358dd93c8a3dda364f2eecce2107ff1e84..c2fd895c2e550caaefabfda84eee84f3769633c9 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -9,7 +9,7 @@
#include <string>
#include <vector>
-#include "base/callback_old.h"
+#include "base/bind.h"
csilv 2011/11/19 00:52:43 add bind/bind_helpers.h
James Hawkins 2011/11/19 01:13:00 Done.
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/json/json_value_serializer.h"
@@ -2759,7 +2759,8 @@ void RenderViewImpl::didFinishResourceLoad(
document_state->set_alt_error_page_fetcher(
new AltErrorPageResourceFetcher(
error_page_url, frame, original_error,
- NewCallback(this, &RenderViewImpl::AltErrorPageFinished)));
+ base::Bind(&RenderViewImpl::AltErrorPageFinished,
+ base::Unretained(this))));
return;
}
}
@@ -4020,7 +4021,8 @@ bool RenderViewImpl::MaybeLoadAlternateErrorPage(WebFrame* frame,
document_state->set_alt_error_page_fetcher(
new AltErrorPageResourceFetcher(
error_page_url, frame, error,
- NewCallback(this, &RenderViewImpl::AltErrorPageFinished)));
+ base::Bind(&RenderViewImpl::AltErrorPageFinished,
+ base::Unretained(this))));
return true;
}
« no previous file with comments | « no previous file | webkit/glue/alt_error_page_resource_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698