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

Unified Diff: chrome/browser/ui/webui/bug_report_ui.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/active_downloads_ui.cc ('k') | chrome/browser/ui/webui/certificate_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/bug_report_ui.cc
===================================================================
--- chrome/browser/ui/webui/bug_report_ui.cc (revision 103795)
+++ chrome/browser/ui/webui/bug_report_ui.cc (working copy)
@@ -6,7 +6,9 @@
#include <vector>
-#include "base/callback.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
+#include "base/callback_old.h"
#include "base/logging.h"
#include "base/memory/weak_ptr.h"
#include "base/message_loop.h"
@@ -387,19 +389,25 @@
void BugReportHandler::RegisterMessages() {
web_ui_->RegisterMessageCallback("getDialogDefaults",
- NewCallback(this, &BugReportHandler::HandleGetDialogDefaults));
+ base::Bind(&BugReportHandler::HandleGetDialogDefaults,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback("refreshCurrentScreenshot",
- NewCallback(this, &BugReportHandler::HandleRefreshCurrentScreenshot));
+ base::Bind(&BugReportHandler::HandleRefreshCurrentScreenshot,
+ base::Unretained(this)));
#if defined(OS_CHROMEOS)
web_ui_->RegisterMessageCallback("refreshSavedScreenshots",
- NewCallback(this, &BugReportHandler::HandleRefreshSavedScreenshots));
+ base::Bind(&BugReportHandler::HandleRefreshSavedScreenshots,
+ base::Unretained(this)));
#endif
web_ui_->RegisterMessageCallback("sendReport",
- NewCallback(this, &BugReportHandler::HandleSendReport));
+ base::Bind(&BugReportHandler::HandleSendReport,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback("cancel",
- NewCallback(this, &BugReportHandler::HandleCancel));
+ base::Bind(&BugReportHandler::HandleCancel,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback("openSystemTab",
- NewCallback(this, &BugReportHandler::HandleOpenSystemTab));
+ base::Bind(&BugReportHandler::HandleOpenSystemTab,
+ base::Unretained(this)));
}
void BugReportHandler::HandleGetDialogDefaults(const ListValue*) {
« no previous file with comments | « chrome/browser/ui/webui/active_downloads_ui.cc ('k') | chrome/browser/ui/webui/certificate_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698