| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <windows.h> | 5 #include <windows.h> |
| 6 #include <urlmon.h> | 6 #include <urlmon.h> |
| 7 | 7 |
| 8 #include "chrome/installer/util/html_dialog.h" | 8 #include "chrome/installer/util/html_dialog.h" |
| 9 | 9 |
| 10 #pragma comment(lib, "urlmon.lib") | 10 #pragma comment(lib, "urlmon.lib") |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 EulaHTMLDialog::EulaHTMLDialog(const std::wstring& file) { | 166 EulaHTMLDialog::EulaHTMLDialog(const std::wstring& file) { |
| 167 dialog_ = CreateNativeHTMLDialog(file); | 167 dialog_ = CreateNativeHTMLDialog(file); |
| 168 } | 168 } |
| 169 | 169 |
| 170 EulaHTMLDialog::~EulaHTMLDialog() { | 170 EulaHTMLDialog::~EulaHTMLDialog() { |
| 171 delete dialog_; | 171 delete dialog_; |
| 172 } | 172 } |
| 173 | 173 |
| 174 bool EulaHTMLDialog::ShowModal() { | 174 bool EulaHTMLDialog::ShowModal() { |
| 175 Customizer customizer; | 175 Customizer customizer; |
| 176 dialog_->ShowModal(NULL, &customizer); | 176 HTMLDialog::DialogResult dr = dialog_->ShowModal(NULL, &customizer); |
| 177 return false; | 177 return (HTMLDialog::HTML_DLG_ACCEPT == dr); |
| 178 } | 178 } |
| 179 | 179 |
| 180 } // namespace installer | 180 } // namespace installer |
| 181 | 181 |
| OLD | NEW |