| 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/setup/install.h" | 5 #include "chrome/installer/setup/install.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <shlobj.h> | 8 #include <shlobj.h> |
| 9 #include <time.h> | 9 #include <time.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/files/file_util.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/numerics/safe_conversions.h" | 17 #include "base/numerics/safe_conversions.h" |
| 18 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 19 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
| 20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 21 #include "base/win/shortcut.h" | 21 #include "base/win/shortcut.h" |
| 22 #include "base/win/windows_version.h" | 22 #include "base/win/windows_version.h" |
| 23 #include "chrome/common/chrome_constants.h" | 23 #include "chrome/common/chrome_constants.h" |
| 24 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
| 25 #include "chrome/installer/setup/install_worker.h" | 25 #include "chrome/installer/setup/install_worker.h" |
| 26 #include "chrome/installer/setup/installer_crash_reporting.h" | |
| 27 #include "chrome/installer/setup/setup_constants.h" | 26 #include "chrome/installer/setup/setup_constants.h" |
| 28 #include "chrome/installer/setup/setup_util.h" | 27 #include "chrome/installer/setup/setup_util.h" |
| 29 #include "chrome/installer/setup/update_active_setup_version_work_item.h" | 28 #include "chrome/installer/setup/update_active_setup_version_work_item.h" |
| 30 #include "chrome/installer/util/beacons.h" | 29 #include "chrome/installer/util/beacons.h" |
| 31 #include "chrome/installer/util/browser_distribution.h" | 30 #include "chrome/installer/util/browser_distribution.h" |
| 32 #include "chrome/installer/util/create_reg_key_work_item.h" | 31 #include "chrome/installer/util/create_reg_key_work_item.h" |
| 33 #include "chrome/installer/util/delete_after_reboot_helper.h" | 32 #include "chrome/installer/util/delete_after_reboot_helper.h" |
| 34 #include "chrome/installer/util/google_update_constants.h" | 33 #include "chrome/installer/util/google_update_constants.h" |
| 35 #include "chrome/installer/util/helper.h" | 34 #include "chrome/installer/util/helper.h" |
| 36 #include "chrome/installer/util/install_util.h" | 35 #include "chrome/installer/util/install_util.h" |
| 36 #include "chrome/installer/util/installer_crash_reporting.h" |
| 37 #include "chrome/installer/util/master_preferences.h" | 37 #include "chrome/installer/util/master_preferences.h" |
| 38 #include "chrome/installer/util/master_preferences_constants.h" | 38 #include "chrome/installer/util/master_preferences_constants.h" |
| 39 #include "chrome/installer/util/set_reg_value_work_item.h" | 39 #include "chrome/installer/util/set_reg_value_work_item.h" |
| 40 #include "chrome/installer/util/util_constants.h" | 40 #include "chrome/installer/util/util_constants.h" |
| 41 #include "chrome/installer/util/work_item.h" | 41 #include "chrome/installer/util/work_item.h" |
| 42 #include "chrome/installer/util/work_item_list.h" | 42 #include "chrome/installer/util/work_item_list.h" |
| 43 | 43 |
| 44 | 44 |
| 45 namespace { | 45 namespace { |
| 46 | 46 |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 // Read master_preferences copied beside chrome.exe at install. | 653 // Read master_preferences copied beside chrome.exe at install. |
| 654 MasterPreferences prefs(installation_root.AppendASCII(kDefaultMasterPrefs)); | 654 MasterPreferences prefs(installation_root.AppendASCII(kDefaultMasterPrefs)); |
| 655 base::FilePath chrome_exe(installation_root.Append(kChromeExe)); | 655 base::FilePath chrome_exe(installation_root.Append(kChromeExe)); |
| 656 CreateOrUpdateShortcuts( | 656 CreateOrUpdateShortcuts( |
| 657 chrome_exe, chrome, prefs, CURRENT_USER, install_operation); | 657 chrome_exe, chrome, prefs, CURRENT_USER, install_operation); |
| 658 | 658 |
| 659 UpdateDefaultBrowserBeaconForPath(chrome_exe); | 659 UpdateDefaultBrowserBeaconForPath(chrome_exe); |
| 660 } | 660 } |
| 661 | 661 |
| 662 } // namespace installer | 662 } // namespace installer |
| OLD | NEW |