Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1143)

Side by Side Diff: chrome/installer/util/html_dialog_impl.cc

Issue 18732: Wire the eula and the dialog display code... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698