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

Unified Diff: chrome/browser/ui/login/login_prompt_ui.cc

Issue 8224022: [webui] Migrate login_prompt_ui.cc 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/login/login_prompt_ui.cc
===================================================================
--- chrome/browser/ui/login/login_prompt_ui.cc (revision 104797)
+++ chrome/browser/ui/login/login_prompt_ui.cc (working copy)
@@ -6,6 +6,8 @@
#include <string>
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/json/json_reader.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
@@ -129,7 +131,8 @@
virtual void RegisterMessages() OVERRIDE {
web_ui_->RegisterMessageCallback(
"GetAutofill",
- NewCallback(this, &LoginHandlerHtmlDelegate::GetAutofill));
+ base::Bind(&LoginHandlerHtmlDelegate::GetAutofill,
+ base::Unretained(this)));
}
void ShowAutofillData(const std::wstring& username,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698