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 100644 |
index 0000000000000000000000000000000000000000..9fb44a1355d33193c87ea7dc8f87eb3858518a9a |
--- /dev/null |
+++ b/chrome/installer/util/eula_util.h |
@@ -0,0 +1,25 @@ |
+// 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, |
grt (UTC plus 2)
2013/01/24 21:04:55
EULA_NOT_ACCEPTED
huangs
2013/01/25 01:13:23
Done.
|
+ EULA_YES = 1 |
grt (UTC plus 2)
2013/01/24 21:04:55
nit: trailing comma
grt (UTC plus 2)
2013/01/24 21:04:55
EULA_ACCEPTED
huangs
2013/01/25 01:13:23
Done.
huangs
2013/01/25 01:13:23
Using QUERY_EULA_ prefix, because EULA_ACCEPTED wa
|
+}; |
+ |
+// Performs a comprehensive test on EULA acceptance in Chrome. |
+// This is mostly intended for system-level Chrome, although it also supports |
+// user-level Chrome (should return EULA_YES). |
+EULAAcceptanceResponse IsEULAAccepted(); |
+ |
+} // namespace installer |
+ |
+#endif // CHROME_INSTALLER_UTIL_EULA_UTIL_H_ |