Home | History | Annotate | Download | only in setup

Lines Matching refs:ShellUtil

54 void LogShortcutOperation(ShellUtil::ShortcutLocation location,
56 const ShellUtil::ShortcutProperties& properties,
57 ShellUtil::ShortcutOperation operation,
59 // ShellUtil::SHELL_SHORTCUT_UPDATE_EXISTING should not be used at install and
61 DCHECK(operation != ShellUtil::SHELL_SHORTCUT_UPDATE_EXISTING);
66 (operation == ShellUtil::SHELL_SHORTCUT_CREATE_ALWAYS ||
67 operation == ShellUtil::SHELL_SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL) ?
69 if (failed && operation == ShellUtil::SHELL_SHORTCUT_REPLACE_EXISTING)
71 message.append((properties.level == ShellUtil::CURRENT_USER) ? "per-user " :
74 case ShellUtil::SHORTCUT_LOCATION_DESKTOP:
77 case ShellUtil::SHORTCUT_LOCATION_QUICK_LAUNCH:
80 case ShellUtil::SHORTCUT_LOCATION_START_MENU_CHROME_DIR:
86 case ShellUtil::SHORTCUT_LOCATION_START_MENU_CHROME_APPS_DIR:
122 ShellUtil::ShortcutLocation location,
124 const ShellUtil::ShortcutProperties& properties,
125 ShellUtil::ShortcutOperation operation) {
127 if (!ShellUtil::CreateOrUpdateShortcut(location, dist, properties,
263 ShellUtil::ShellChange shortcut_level = installer_state.system_install() ?
264 ShellUtil::SYSTEM_LEVEL : ShellUtil::CURRENT_USER;
266 ShellUtil::GetShortcutPath(ShellUtil::SHORTCUT_LOCATION_START_MENU_CHROME_DIR,
273 ShellUtil::RemoveShortcuts(
274 ShellUtil::SHORTCUT_LOCATION_QUICK_LAUNCH, dist,
275 ShellUtil::SYSTEM_LEVEL, chrome_exe);
399 ShellUtil::ShortcutOperation shortcut_operation;
402 shortcut_operation = ShellUtil::SHELL_SHORTCUT_CREATE_ALWAYS;
405 shortcut_operation = ShellUtil::SHELL_SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL;
409 shortcut_operation = ShellUtil::SHELL_SHORTCUT_REPLACE_EXISTING;
414 ShellUtil::ShellChange shortcut_level = (install_level == ALL_USERS ?
415 ShellUtil::SYSTEM_LEVEL : ShellUtil::CURRENT_USER);
419 ShellUtil::ShortcutProperties base_properties(shortcut_level);
423 shortcut_operation == ShellUtil::SHELL_SHORTCUT_REPLACE_EXISTING) {
424 ShellUtil::ShortcutProperties desktop_properties(base_properties);
431 ShellUtil::SHORTCUT_LOCATION_DESKTOP, dist, desktop_properties,
437 shortcut_operation == ShellUtil::SHELL_SHORTCUT_REPLACE_EXISTING) {
442 ShellUtil::SHORTCUT_LOCATION_DESKTOP, dist, desktop_properties,
448 shortcut_operation == ShellUtil::SHELL_SHORTCUT_REPLACE_EXISTING) {
451 ShellUtil::ShortcutProperties quick_launch_properties(base_properties);
452 quick_launch_properties.level = ShellUtil::CURRENT_USER;
454 ShellUtil::SHORTCUT_LOCATION_QUICK_LAUNCH, dist,
458 ShellUtil::ShortcutProperties start_menu_properties(base_properties);
464 (shortcut_operation == ShellUtil::SHELL_SHORTCUT_CREATE_ALWAYS ||
466 ShellUtil::SHELL_SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL)) {
470 ShellUtil::SHORTCUT_LOCATION_START_MENU_CHROME_DIR, dist,
490 if (make_chrome_default && ShellUtil::CanMakeChromeDefaultUnattended()) {
491 int level = ShellUtil::CURRENT_USER;
493 level = level | ShellUtil::SYSTEM_LEVEL;
494 ShellUtil::MakeChromeDefault(dist, level, chrome_exe, true);
496 ShellUtil::RegisterChromeBrowser(dist, chrome_exe, string16(), false);