summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/textfields_ui.cc
diff options
context:
space:
mode:
authorcsilv@chromium.org <csilv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-03 22:04:55 +0000
committercsilv@chromium.org <csilv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-03 22:04:55 +0000
commit8be15fe2b380ac0f12570226d9f1e8bb64527d21 (patch)
tree4c0c1200cdb0b851224af3b361db46bd976182fa /chrome/browser/ui/webui/textfields_ui.cc
parent0080c4fc83b66fb66706ec36023c04c379bb5cc5 (diff)
downloadchromium_src-8be15fe2b380ac0f12570226d9f1e8bb64527d21.zip
chromium_src-8be15fe2b380ac0f12570226d9f1e8bb64527d21.tar.gz
chromium_src-8be15fe2b380ac0f12570226d9f1e8bb64527d21.tar.bz2
Revert 103785 - [web-ui] Migrate callbacks to base::Bind.
This CL doesn't migrate all callbacks, just those used with RegisterMessageCallback. BUG=98478 Review URL: http://codereview.chromium.org/8122004 TBR=csilv@chromium.org Review URL: http://codereview.chromium.org/8113015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103794 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/textfields_ui.cc')
-rw-r--r--chrome/browser/ui/webui/textfields_ui.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/ui/webui/textfields_ui.cc b/chrome/browser/ui/webui/textfields_ui.cc
index 58ba465..8ec4404 100644
--- a/chrome/browser/ui/webui/textfields_ui.cc
+++ b/chrome/browser/ui/webui/textfields_ui.cc
@@ -7,8 +7,6 @@
#include <algorithm>
#include <string>
-#include "base/bind.h"
-#include "base/bind_helpers.h"
#include "base/memory/singleton.h"
#include "base/string_piece.h"
#include "base/utf_string_conversions.h"
@@ -47,8 +45,7 @@ TextfieldsDOMHandler::TextfieldsDOMHandler() : WebUIMessageHandler() {}
void TextfieldsDOMHandler::RegisterMessages() {
web_ui_->RegisterMessageCallback("textfieldValue",
- base::Bind(&TextfieldsDOMHandler::HandleTextfieldValue,
- base::Unretained(this)));
+ NewCallback(this, &TextfieldsDOMHandler::HandleTextfieldValue));
}
void TextfieldsDOMHandler::HandleTextfieldValue(const ListValue* args) {