Chromium Code Reviews| Index: chrome/installer/util/eula_util.h |
| diff --git a/chrome/installer/util/eula_util.h b/chrome/installer/util/eula_util.h |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..0f40080d85a50aa17fb9a325a47dd4a9e161b486 |
| --- /dev/null |
| +++ b/chrome/installer/util/eula_util.h |
| @@ -0,0 +1,20 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| +// |
| +// This file contains utilities to read and manage EULA for Chrome. |
|
grt (UTC plus 2)
2013/01/24 02:51:40
i think it's more accurate to say something about
huangs
2013/01/24 18:56:03
Done.
|
| + |
| +#ifndef CHROME_INSTALLER_UTIL_EULA_UTIL_H_ |
| +#define CHROME_INSTALLER_UTIL_EULA_UTIL_H_ |
| + |
| +#include <windows.h> |
| + |
| +namespace installer { |
| + |
| +// Performs a comprehensive test on EULA acceptance in Chrome. |
|
grt (UTC plus 2)
2013/01/24 02:51:40
"...in system-level Chrome."
huangs
2013/01/24 18:56:03
Done (more elaborate comments).
|
| +// Returns: 0 if EULA not accepted, 1 if EULA accepted, and E_FAIL on error. |
|
grt (UTC plus 2)
2013/01/24 02:51:40
you're mixing windows HRESULTS with arbitrary valu
huangs
2013/01/24 18:56:03
Defined enum EULAAcceptanceResponse. Is it okay t
grt (UTC plus 2)
2013/01/24 21:04:55
IIRC, a process exit code in Windows is a DWORD, w
|
| +HRESULT IsEULAAccepted(); |
| + |
| +} // namespace installer |
| + |
| +#endif // CHROME_INSTALLER_UTIL_EULA_UTIL_H_ |