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" |
18 #include "base/time/time.h" | 19 #include "base/time/time.h" |
19 #include "base/version.h" | 20 #include "base/version.h" |
20 #include "base/win/registry.h" | 21 #include "base/win/registry.h" |
21 #include "chrome/browser/policy/policy_path_parser.h" | 22 #include "chrome/browser/policy/policy_path_parser.h" |
22 #include "chrome/common/chrome_constants.h" | 23 #include "chrome/common/chrome_constants.h" |
23 #include "chrome/common/chrome_paths.h" | 24 #include "chrome/common/chrome_paths.h" |
24 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
25 #include "chrome/common/chrome_version.h" | 26 #include "chrome/common/chrome_version.h" |
26 #include "chrome/installer/util/google_update_constants.h" | 27 #include "chrome/installer/util/google_update_constants.h" |
27 #include "chrome/installer/util/install_util.h" | 28 #include "chrome/installer/util/install_util.h" |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 key.Open((install_level == SYSTEM_INSTALL) ? HKEY_LOCAL_MACHINE | 186 key.Open((install_level == SYSTEM_INSTALL) ? HKEY_LOCAL_MACHINE |
186 : HKEY_CURRENT_USER, | 187 : HKEY_CURRENT_USER, |
187 BrowserDistribution::GetDistribution()->GetStateKey().c_str(), | 188 BrowserDistribution::GetDistribution()->GetStateKey().c_str(), |
188 KEY_QUERY_VALUE | KEY_WOW64_32KEY) == ERROR_SUCCESS && | 189 KEY_QUERY_VALUE | KEY_WOW64_32KEY) == ERROR_SUCCESS && |
189 key.ReadValueDW(google_update::kRegMSIField, &is_msi) == | 190 key.ReadValueDW(google_update::kRegMSIField, &is_msi) == |
190 ERROR_SUCCESS && | 191 ERROR_SUCCESS && |
191 is_msi != 0; | 192 is_msi != 0; |
192 } | 193 } |
193 | 194 |
194 } // namespace downgrade | 195 } // namespace downgrade |
OLD | NEW |