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) { |