OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/installer/util/eula_util.h" | 5 #include "chrome/installer/util/eula_util.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/installer/util/browser_distribution.h" | 9 #include "chrome/installer/util/browser_distribution.h" |
10 #include "chrome/installer/util/install_util.h" | 10 #include "chrome/installer/util/install_util.h" |
11 #include "chrome/installer/util/installation_state.h" | 11 #include "chrome/installer/util/installation_state.h" |
12 #include "chrome/installer/util/master_preferences.h" | 12 #include "chrome/installer/util/master_preferences.h" |
13 #include "chrome/installer/util/master_preferences_constants.h" | 13 #include "chrome/installer/util/master_preferences_constants.h" |
14 | 14 |
15 namespace installer { | 15 namespace installer { |
16 | 16 |
17 namespace { | 17 namespace { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 bool eula_required = false; | 87 bool eula_required = false; |
88 // If kRequireEula value is absent, assume EULA is not required. | 88 // If kRequireEula value is absent, assume EULA is not required. |
89 if (!install_prefs->GetBool(master_preferences::kRequireEula, &eula_required)) | 89 if (!install_prefs->GetBool(master_preferences::kRequireEula, &eula_required)) |
90 return QUERY_EULA_ACCEPTED; | 90 return QUERY_EULA_ACCEPTED; |
91 | 91 |
92 return eula_required ? QUERY_EULA_NOT_ACCEPTED : QUERY_EULA_ACCEPTED; | 92 return eula_required ? QUERY_EULA_NOT_ACCEPTED : QUERY_EULA_ACCEPTED; |
93 } | 93 } |
94 | 94 |
95 } // namespace installer | 95 } // namespace installer |
OLD | NEW |