diff options
author | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-29 03:27:35 +0000 |
---|---|---|
committer | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-29 03:27:35 +0000 |
commit | 9e7a2dcebbbe2df2b019f213e3b39be53237e3ab (patch) | |
tree | 1e78321d2100a4e5e49b482f3d2596fd293c44e2 /chrome/installer/util/html_dialog.h | |
parent | 09a1bd76e3fd08b2ba0035af7ee2f0b60661174b (diff) | |
download | chromium_src-9e7a2dcebbbe2df2b019f213e3b39be53237e3ab.zip chromium_src-9e7a2dcebbbe2df2b019f213e3b39be53237e3ab.tar.gz chromium_src-9e7a2dcebbbe2df2b019f213e3b39be53237e3ab.tar.bz2 |
Wire the stats consent checkbox of the EULA
- Collected in setup.exe passed to chrome via return code
- Depends on an updated oem.html and JS code by Glen
BUG=1468838
Review URL: http://codereview.chromium.org/19649
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8866 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/html_dialog.h')
-rw-r--r-- | chrome/installer/util/html_dialog.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/chrome/installer/util/html_dialog.h b/chrome/installer/util/html_dialog.h index 91ace2d..39b741d 100644 --- a/chrome/installer/util/html_dialog.h +++ b/chrome/installer/util/html_dialog.h @@ -59,16 +59,24 @@ class HTMLDialog { HTMLDialog* CreateNativeHTMLDialog(const std::wstring& url); // This class leverages HTMLDialog to create a dialog that is suitable -// for a end-user-agreement modal dialog. +// for a end-user-agreement modal dialog. The html shows a fairly standard +// EULA form with the accept and cancel buttons and an optional check box +// to opt-in for sending usage stats and crash reports. class EulaHTMLDialog { public: - // |file| points to an html file on disk. + // |file| points to an html file on disk or to a resource via res:// spec. explicit EulaHTMLDialog(const std::wstring& file); ~EulaHTMLDialog(); - // Shows the dialog and blocks for user input. The return value is true if - // the user accepted and false otherwise. - bool ShowModal(); + enum Outcome { + REJECTED, // Declined EULA, mapped from HTML_DLG_ACCEPT (1). + ACCEPTED, // Accepted EULA no opt-in, from HTML_DLG_DECLINE (2). + ACCEPTED_OPT_IN, // Accepted EULA and opt-in, from HTML_DLG_EXTRA (6). + }; + + // Shows the dialog and blocks for user input. The return value is one of + // the |Outcome| values and any form of failure maps to REJECTED. + Outcome ShowModal(); private: class Customizer : public HTMLDialog::CustomizationCallback { |