OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Implementation of the installation validator. | 5 // Implementation of the installation validator. |
6 | 6 |
7 #include "chrome/installer/util/installation_validator.h" | 7 #include "chrome/installer/util/installation_validator.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/version.h" | |
16 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
17 #include "chrome/installer/util/browser_distribution.h" | 16 #include "chrome/installer/util/browser_distribution.h" |
18 #include "chrome/installer/util/google_update_constants.h" | 17 #include "chrome/installer/util/google_update_constants.h" |
19 #include "chrome/installer/util/helper.h" | 18 #include "chrome/installer/util/helper.h" |
20 #include "chrome/installer/util/installation_state.h" | 19 #include "chrome/installer/util/installation_state.h" |
21 | 20 |
22 namespace installer { | 21 namespace installer { |
23 | 22 |
24 BrowserDistribution::Type | 23 BrowserDistribution::Type |
25 InstallationValidator::ChromeRules::distribution_type() const { | 24 InstallationValidator::ChromeRules::distribution_type() const { |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 InstallationType* type) { | 812 InstallationType* type) { |
814 DCHECK(type); | 813 DCHECK(type); |
815 InstallationState machine_state; | 814 InstallationState machine_state; |
816 | 815 |
817 machine_state.Initialize(); | 816 machine_state.Initialize(); |
818 | 817 |
819 return ValidateInstallationTypeForState(machine_state, system_level, type); | 818 return ValidateInstallationTypeForState(machine_state, system_level, type); |
820 } | 819 } |
821 | 820 |
822 } // namespace installer | 821 } // namespace installer |
OLD | NEW |