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

Unified Diff: chrome/browser/ui/webui/web_ui_test_handler.cc

Issue 8113018: [web-ui] Migrate RegisterMessageCallback usage to base::bind(). (Closed) Base URL: svn://svn.chromium.org/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 | « chrome/browser/ui/webui/web_ui_browsertest.cc ('k') | chrome/browser/ui/webui/workers_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/web_ui_test_handler.cc
===================================================================
--- chrome/browser/ui/webui/web_ui_test_handler.cc (revision 103795)
+++ chrome/browser/ui/webui/web_ui_test_handler.cc (working copy)
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/webui/web_ui_test_handler.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/common/render_messages.h"
@@ -47,8 +49,8 @@
}
void WebUITestHandler::RegisterMessages() {
- web_ui_->RegisterMessageCallback("testResult", NewCallback(
- this, &WebUITestHandler::HandleTestResult));
+ web_ui_->RegisterMessageCallback("testResult",
+ base::Bind(&WebUITestHandler::HandleTestResult, base::Unretained(this)));
}
void WebUITestHandler::HandleTestResult(const ListValue* test_result) {
« no previous file with comments | « chrome/browser/ui/webui/web_ui_browsertest.cc ('k') | chrome/browser/ui/webui/workers_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698