summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/constrained_html_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/webui/constrained_html_ui.cc')
-rw-r--r--chrome/browser/ui/webui/constrained_html_ui.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/ui/webui/constrained_html_ui.cc b/chrome/browser/ui/webui/constrained_html_ui.cc
index 5621339..988d963 100644
--- a/chrome/browser/ui/webui/constrained_html_ui.cc
+++ b/chrome/browser/ui/webui/constrained_html_ui.cc
@@ -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 @@ void ConstrainedHtmlUI::RenderViewCreated(RenderViewHost* render_view_host) {
// 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) {