summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 23:43:19 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-30 23:43:19 +0000
commite54703d051313d614e1753b4ecff86865d160891 (patch)
tree8b42be49f4d6bb93df4e79e75989a8f288522173
parent3df8d2b6693e05b633159969a3b735039950f073 (diff)
downloadchromium_src-e54703d051313d614e1753b4ecff86865d160891.zip
chromium_src-e54703d051313d614e1753b4ecff86865d160891.tar.gz
chromium_src-e54703d051313d614e1753b4ecff86865d160891.tar.bz2
Transition AutofillOptionsHandler from NewCallback to base::Bind()
BUG=98478 TEST=compiles Review URL: http://codereview.chromium.org/8094009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103582 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/ui/webui/options/autofill_options_handler.cc22
1 files changed, 15 insertions, 7 deletions
diff --git a/chrome/browser/ui/webui/options/autofill_options_handler.cc b/chrome/browser/ui/webui/options/autofill_options_handler.cc
index 1537b28..cab4023 100644
--- a/chrome/browser/ui/webui/options/autofill_options_handler.cc
+++ b/chrome/browser/ui/webui/options/autofill_options_handler.cc
@@ -6,6 +6,8 @@
#include <vector>
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/logging.h"
#include "base/string16.h"
#include "base/string_number_conversions.h"
@@ -294,25 +296,31 @@ void AutofillOptionsHandler::Initialize() {
void AutofillOptionsHandler::RegisterMessages() {
web_ui_->RegisterMessageCallback(
"removeAddress",
- NewCallback(this, &AutofillOptionsHandler::RemoveAddress));
+ base::Bind(&AutofillOptionsHandler::RemoveAddress,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback(
"removeCreditCard",
- NewCallback(this, &AutofillOptionsHandler::RemoveCreditCard));
+ base::Bind(&AutofillOptionsHandler::RemoveCreditCard,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback(
"loadAddressEditor",
- NewCallback(this, &AutofillOptionsHandler::LoadAddressEditor));
+ base::Bind(&AutofillOptionsHandler::LoadAddressEditor,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback(
"loadCreditCardEditor",
- NewCallback(this, &AutofillOptionsHandler::LoadCreditCardEditor));
+ base::Bind(&AutofillOptionsHandler::LoadCreditCardEditor,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback(
"setAddress",
- NewCallback(this, &AutofillOptionsHandler::SetAddress));
+ base::Bind(&AutofillOptionsHandler::SetAddress, base::Unretained(this)));
web_ui_->RegisterMessageCallback(
"setCreditCard",
- NewCallback(this, &AutofillOptionsHandler::SetCreditCard));
+ base::Bind(&AutofillOptionsHandler::SetCreditCard,
+ base::Unretained(this)));
web_ui_->RegisterMessageCallback(
"validatePhoneNumbers",
- NewCallback(this, &AutofillOptionsHandler::ValidatePhoneNumbers));
+ base::Bind(&AutofillOptionsHandler::ValidatePhoneNumbers,
+ base::Unretained(this)));
}
/////////////////////////////////////////////////////////////////////////////