summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/html_dialog_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/dom_ui/html_dialog_ui.cc')
-rw-r--r--chrome/browser/dom_ui/html_dialog_ui.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/chrome/browser/dom_ui/html_dialog_ui.cc b/chrome/browser/dom_ui/html_dialog_ui.cc
index 4f7995d..060625d 100644
--- a/chrome/browser/dom_ui/html_dialog_ui.cc
+++ b/chrome/browser/dom_ui/html_dialog_ui.cc
@@ -61,20 +61,11 @@ void HtmlDialogUI::RenderViewCreated(RenderViewHost* render_view_host) {
// Pass the arguments to the renderer supplied by the delegate.
std::string dialog_args;
- std::vector<DOMMessageHandler*> handlers;
HtmlDialogUIDelegate** delegate = GetPropertyAccessor().GetProperty(
tab_contents()->property_bag());
- if (delegate) {
+ if (delegate)
dialog_args = (*delegate)->GetDialogArgs();
- (*delegate)->GetDOMMessageHandlers(&handlers);
- }
-
render_view_host->SetDOMUIProperty("dialogArguments", dialog_args);
- for (std::vector<DOMMessageHandler*>::iterator it = handlers.begin();
- it != handlers.end(); ++it) {
- (*it)->Attach(this);
- AddMessageHandler(*it);
- }
}
void HtmlDialogUI::OnDialogClosed(const Value* content) {