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..a07ec29e692bb81888cc59590d5cdef014a43978 |
| --- /dev/null |
| +++ b/chrome/installer/util/eula_util.h |
| @@ -0,0 +1,27 @@ |
| +// 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 helper functions to read the Chrome EULA. |
| + |
| +#ifndef CHROME_INSTALLER_UTIL_EULA_UTIL_H_ |
| +#define CHROME_INSTALLER_UTIL_EULA_UTIL_H_ |
| + |
| +namespace installer { |
| + |
| +enum EULAAcceptanceResponse{ |
| + EULA_FAIL = -1, |
| + EULA_NO = 0, |
| + EULA_YES = 1 |
| +}; |
| + |
| +// Performs a comprehensive test on EULA acceptance in Chrome. |
| +// This is mostly intended for system-level Chrome, although it also supports |
| +// user-level Chrome (the logic should produce a YES). |
| +// Returns EULAAcceptanceResponse: EULA_NO if EULA not accepted, |
|
erikwright (departed)
2013/01/24 19:09:54
I think "Returns..." is unnecessary verbosity.
huangs
2013/01/24 19:45:22
Removed.
|
| +// EULA_YES if EULA accepted, and EULA_FAIL on error. |
| +EULAAcceptanceResponse IsEULAAccepted(); |
| + |
| +} // namespace installer |
| + |
| +#endif // CHROME_INSTALLER_UTIL_EULA_UTIL_H_ |