OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/browser/downgrade/user_data_downgrade.h" | 5 #include "chrome/browser/downgrade/user_data_downgrade.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/files/file_enumerator.h" | 11 #include "base/files/file_enumerator.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/threading/sequenced_worker_pool.h" | |
19 #include "base/time/time.h" | 18 #include "base/time/time.h" |
20 #include "base/version.h" | 19 #include "base/version.h" |
21 #include "base/win/registry.h" | 20 #include "base/win/registry.h" |
22 #include "chrome/browser/policy/policy_path_parser.h" | 21 #include "chrome/browser/policy/policy_path_parser.h" |
23 #include "chrome/common/chrome_constants.h" | 22 #include "chrome/common/chrome_constants.h" |
24 #include "chrome/common/chrome_paths.h" | 23 #include "chrome/common/chrome_paths.h" |
25 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
26 #include "chrome/common/chrome_version.h" | 25 #include "chrome/common/chrome_version.h" |
27 #include "chrome/installer/util/google_update_constants.h" | 26 #include "chrome/installer/util/google_update_constants.h" |
28 #include "chrome/installer/util/install_util.h" | 27 #include "chrome/installer/util/install_util.h" |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 key.Open((install_level == SYSTEM_INSTALL) ? HKEY_LOCAL_MACHINE | 185 key.Open((install_level == SYSTEM_INSTALL) ? HKEY_LOCAL_MACHINE |
187 : HKEY_CURRENT_USER, | 186 : HKEY_CURRENT_USER, |
188 BrowserDistribution::GetDistribution()->GetStateKey().c_str(), | 187 BrowserDistribution::GetDistribution()->GetStateKey().c_str(), |
189 KEY_QUERY_VALUE | KEY_WOW64_32KEY) == ERROR_SUCCESS && | 188 KEY_QUERY_VALUE | KEY_WOW64_32KEY) == ERROR_SUCCESS && |
190 key.ReadValueDW(google_update::kRegMSIField, &is_msi) == | 189 key.ReadValueDW(google_update::kRegMSIField, &is_msi) == |
191 ERROR_SUCCESS && | 190 ERROR_SUCCESS && |
192 is_msi != 0; | 191 is_msi != 0; |
193 } | 192 } |
194 | 193 |
195 } // namespace downgrade | 194 } // namespace downgrade |
OLD | NEW |