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

Unified Diff: chrome/installer/util/eula_util.h

Issue 12035043: Implementing app command to query EULA acceptance state for Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style and string fixes. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/setup/setup_main.cc ('k') | chrome/installer/util/eula_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5cd0d88f9b804929665c1571d2913b83ed90b74f
--- /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{
+ QUERY_EULA_FAIL = -1,
+ QUERY_EULA_NOT_ACCEPTED = 0,
+ QUERY_EULA_ACCEPTED = 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 (should return QUERY_EULA_ACCEPTED).
+EULAAcceptanceResponse IsEULAAccepted(bool system_level);
+
+} // namespace installer
+
+#endif // CHROME_INSTALLER_UTIL_EULA_UTIL_H_
« no previous file with comments | « chrome/installer/setup/setup_main.cc ('k') | chrome/installer/util/eula_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698