| 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 #include "chrome/installer/util/installer_state.h" | 5 #include "chrome/installer/util/installer_state.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/file_util.h" | |
| 13 #include "base/file_version_info.h" | 12 #include "base/file_version_info.h" |
| 14 #include "base/files/file_enumerator.h" | 13 #include "base/files/file_enumerator.h" |
| 14 #include "base/files/file_util.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| 19 #include "base/win/registry.h" | 19 #include "base/win/registry.h" |
| 20 #include "base/win/scoped_handle.h" | 20 #include "base/win/scoped_handle.h" |
| 21 #include "chrome/installer/util/delete_tree_work_item.h" | 21 #include "chrome/installer/util/delete_tree_work_item.h" |
| 22 #include "chrome/installer/util/helper.h" | 22 #include "chrome/installer/util/helper.h" |
| 23 #include "chrome/installer/util/install_util.h" | 23 #include "chrome/installer/util/install_util.h" |
| 24 #include "chrome/installer/util/installation_state.h" | 24 #include "chrome/installer/util/installation_state.h" |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 } | 827 } |
| 828 if (!install_list->Do()) | 828 if (!install_list->Do()) |
| 829 LOG(ERROR) << "Failed to record installer error information in registry."; | 829 LOG(ERROR) << "Failed to record installer error information in registry."; |
| 830 } | 830 } |
| 831 | 831 |
| 832 bool InstallerState::RequiresActiveSetup() const { | 832 bool InstallerState::RequiresActiveSetup() const { |
| 833 return system_install() && FindProduct(BrowserDistribution::CHROME_BROWSER); | 833 return system_install() && FindProduct(BrowserDistribution::CHROME_BROWSER); |
| 834 } | 834 } |
| 835 | 835 |
| 836 } // namespace installer | 836 } // namespace installer |
| OLD | NEW |