Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: chrome/installer/setup/setup_main.cc

Issue 13864015: Move app launcher and chrome apps shortcut strings into the installer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@migrate_app_id_fix
Patch Set: rebase, move app launcher and chrome app strings into the installer Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <windows.h> 5 #include <windows.h>
6 #include <msi.h> 6 #include <msi.h>
7 #include <shellapi.h> 7 #include <shellapi.h>
8 #include <shlobj.h> 8 #include <shlobj.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 installer::InstallStatus status = installer::FIRST_INSTALL_SUCCESS; 1202 installer::InstallStatus status = installer::FIRST_INSTALL_SUCCESS;
1203 if (file_util::PathExists(chrome_exe)) { 1203 if (file_util::PathExists(chrome_exe)) {
1204 Product chrome(chrome_dist); 1204 Product chrome(chrome_dist);
1205 1205
1206 // Create the Start menu shortcut and pin it to the taskbar. 1206 // Create the Start menu shortcut and pin it to the taskbar.
1207 ShellUtil::ShortcutProperties shortcut_properties(ShellUtil::CURRENT_USER); 1207 ShellUtil::ShortcutProperties shortcut_properties(ShellUtil::CURRENT_USER);
1208 chrome.AddDefaultShortcutProperties(chrome_exe, &shortcut_properties); 1208 chrome.AddDefaultShortcutProperties(chrome_exe, &shortcut_properties);
1209 shortcut_properties.set_dual_mode(true); 1209 shortcut_properties.set_dual_mode(true);
1210 shortcut_properties.set_pin_to_taskbar(true); 1210 shortcut_properties.set_pin_to_taskbar(true);
1211 ShellUtil::CreateOrUpdateShortcut( 1211 ShellUtil::CreateOrUpdateShortcut(
1212 ShellUtil::SHORTCUT_LOCATION_START_MENU, chrome_dist, 1212 ShellUtil::SHORTCUT_LOCATION_START_MENU_CHROME_DIR, chrome_dist,
1213 shortcut_properties, ShellUtil::SHELL_SHORTCUT_CREATE_ALWAYS); 1213 shortcut_properties, ShellUtil::SHELL_SHORTCUT_CREATE_ALWAYS);
1214 1214
1215 // Register Chrome at user-level and make it default. 1215 // Register Chrome at user-level and make it default.
1216 scoped_ptr<WorkItemList> delegate_execute_list( 1216 scoped_ptr<WorkItemList> delegate_execute_list(
1217 WorkItem::CreateWorkItemList()); 1217 WorkItem::CreateWorkItemList());
1218 installer::AddDelegateExecuteWorkItems( 1218 installer::AddDelegateExecuteWorkItems(
1219 installer_state, chrome_exe.DirName(), Version(), chrome, 1219 installer_state, chrome_exe.DirName(), Version(), chrome,
1220 delegate_execute_list.get()); 1220 delegate_execute_list.get());
1221 delegate_execute_list->Do(); 1221 delegate_execute_list->Do();
1222 if (ShellUtil::CanMakeChromeDefaultUnattended()) { 1222 if (ShellUtil::CanMakeChromeDefaultUnattended()) {
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
1727 if (!(installer_state.is_msi() && is_uninstall)) 1727 if (!(installer_state.is_msi() && is_uninstall))
1728 // Note that we allow the status installer::UNINSTALL_REQUIRES_REBOOT 1728 // Note that we allow the status installer::UNINSTALL_REQUIRES_REBOOT
1729 // to pass through, since this is only returned on uninstall which is 1729 // to pass through, since this is only returned on uninstall which is
1730 // never invoked directly by Google Update. 1730 // never invoked directly by Google Update.
1731 return_code = InstallUtil::GetInstallReturnCode(install_status); 1731 return_code = InstallUtil::GetInstallReturnCode(install_status);
1732 1732
1733 VLOG(1) << "Installation complete, returning: " << return_code; 1733 VLOG(1) << "Installation complete, returning: " << return_code;
1734 1734
1735 return return_code; 1735 return return_code;
1736 } 1736 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698