[webui] Migrate moar instances of RegisterMessageCallacks to base::bind().
BUG=98478
Review URL: http://codereview.chromium.org/8114024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103954 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/printing/print_dialog_cloud.cc b/chrome/browser/printing/print_dialog_cloud.cc
index c1d4c4e..7711aed 100644
--- a/chrome/browser/printing/print_dialog_cloud.cc
+++ b/chrome/browser/printing/print_dialog_cloud.cc
@@ -6,6 +6,8 @@
#include "chrome/browser/printing/print_dialog_cloud_internal.h"
#include "base/base64.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/json/json_reader.h"
@@ -282,15 +284,15 @@
// TODO(scottbyer) - This is where we will register messages for the
// UI JS to use. Needed: Call to update page setup parameters.
- web_ui_->RegisterMessageCallback(
- "ShowDebugger",
- NewCallback(this, &CloudPrintFlowHandler::HandleShowDebugger));
- web_ui_->RegisterMessageCallback(
- "SendPrintData",
- NewCallback(this, &CloudPrintFlowHandler::HandleSendPrintData));
- web_ui_->RegisterMessageCallback(
- "SetPageParameters",
- NewCallback(this, &CloudPrintFlowHandler::HandleSetPageParameters));
+ web_ui_->RegisterMessageCallback("ShowDebugger",
+ base::Bind(&CloudPrintFlowHandler::HandleShowDebugger,
+ base::Unretained(this)));
+ web_ui_->RegisterMessageCallback("SendPrintData",
+ base::Bind(&CloudPrintFlowHandler::HandleSendPrintData,
+ base::Unretained(this)));
+ web_ui_->RegisterMessageCallback("SetPageParameters",
+ base::Bind(&CloudPrintFlowHandler::HandleSetPageParameters,
+ base::Unretained(this)));
// Register for appropriate notifications, and re-direct the URL
// to the real server URL, now that we've gotten an HTML dialog