summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/master_preferences.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/installer/util/master_preferences.cc')
-rw-r--r--chrome/installer/util/master_preferences.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/installer/util/master_preferences.cc b/chrome/installer/util/master_preferences.cc
index 21c74dd..4a0da2f 100644
--- a/chrome/installer/util/master_preferences.cc
+++ b/chrome/installer/util/master_preferences.cc
@@ -52,6 +52,8 @@ const wchar_t kMakeChromeDefault[] = L"distribution.make_chrome_default";
const wchar_t kSystemLevel[] = L"distribution.system_level";
// Run installer in verbose mode.
const wchar_t kVerboseLogging[] = L"distribution.verbose_logging";
+// Show EULA dialog and install only if accepted.
+const wchar_t kRequireEula[] = L"distribution.require_eula";
int ParseDistributionPreferences(const std::wstring& master_prefs_path) {
@@ -98,6 +100,9 @@ int ParseDistributionPreferences(const std::wstring& master_prefs_path) {
if (GetBooleanPref(json_root.get(), kVerboseLogging))
parse_result |= MASTER_PROFILE_VERBOSE_LOGGING;
+ if (GetBooleanPref(json_root.get(), kRequireEula))
+ parse_result |= MASTER_PROFILE_REQUIRE_EULA;
+
return parse_result;
}