summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/html_dialog_ui.cc
diff options
context:
space:
mode:
authortim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 15:52:29 +0000
committertim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 15:52:29 +0000
commit8537054e6da7e12a50ab27786dd01b253b8a0d12 (patch)
treeec43ed5313377170b8446c71e1c0a5727953af3f /chrome/browser/dom_ui/html_dialog_ui.cc
parent0fda727e08d2f785ce127fba39c4ce69955fa934 (diff)
downloadchromium_src-8537054e6da7e12a50ab27786dd01b253b8a0d12.zip
chromium_src-8537054e6da7e12a50ab27786dd01b253b8a0d12.tar.gz
chromium_src-8537054e6da7e12a50ab27786dd01b253b8a0d12.tar.bz2
Revert cl 19359 due to browser_tests timeout.
TBR=nsylvain Review URL: http://codereview.chromium.org/147206 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19363 0039d316-1c4b-4281-b951-d872f2087c98
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) {