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

Unified Diff: chrome/browser/ui/webui/constrained_html_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
Index: chrome/browser/ui/webui/constrained_html_ui.cc
===================================================================
--- chrome/browser/ui/webui/constrained_html_ui.cc (revision 103795)
+++ chrome/browser/ui/webui/constrained_html_ui.cc (working copy)
@@ -7,6 +7,8 @@
#include <string>
#include <vector>
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/lazy_instance.h"
#include "base/values.h"
#include "chrome/browser/ui/webui/html_dialog_ui.h"
@@ -41,7 +43,8 @@
// Add a "DialogClose" callback which matches HTMLDialogUI behavior.
RegisterMessageCallback("DialogClose",
- NewCallback(this, &ConstrainedHtmlUI::OnDialogCloseMessage));
+ base::Bind(&ConstrainedHtmlUI::OnDialogCloseMessage,
+ base::Unretained(this)));
}
void ConstrainedHtmlUI::OnDialogCloseMessage(const ListValue* args) {
« no previous file with comments | « chrome/browser/ui/webui/collected_cookies_ui_delegate.cc ('k') | chrome/browser/ui/webui/cookies_tree_model_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698