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

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

Issue 57173002: Adds the concept of a 'safe mode' hotkey start (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 "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
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 // IMPORTANT: Only the default (no arguments and default browserappid) browser 450 // IMPORTANT: Only the default (no arguments and default browserappid) browser
451 // shortcut in the Start menu (Start screen on Win8+) should be made dual 451 // shortcut in the Start menu (Start screen on Win8+) should be made dual
452 // mode. 452 // mode.
453 start_menu_properties.set_dual_mode(true); 453 start_menu_properties.set_dual_mode(true);
454 if (!do_not_create_taskbar_shortcut && 454 if (!do_not_create_taskbar_shortcut &&
455 (shortcut_operation == ShellUtil::SHELL_SHORTCUT_CREATE_ALWAYS || 455 (shortcut_operation == ShellUtil::SHELL_SHORTCUT_CREATE_ALWAYS ||
456 shortcut_operation == 456 shortcut_operation ==
457 ShellUtil::SHELL_SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL)) { 457 ShellUtil::SHELL_SHORTCUT_CREATE_IF_NO_SYSTEM_LEVEL)) {
458 start_menu_properties.set_pin_to_taskbar(true); 458 start_menu_properties.set_pin_to_taskbar(true);
459 } 459 }
460 // The 'safe mode' hotkey launch shortcut only for the start menu shortcut.
robertshield 2013/11/04 02:19:55 suggestion: The 'launch safe mode' hotkey should b
cpu_(ooo_6.6-7.5) 2013/11/04 19:10:57 Done.
461 int hotkey = dist->GetSafeModeHotkey();
462 if (hotkey)
463 start_menu_properties.set_hotkey(hotkey);
460 ExecuteAndLogShortcutOperation(ShellUtil::SHORTCUT_LOCATION_START_MENU, 464 ExecuteAndLogShortcutOperation(ShellUtil::SHORTCUT_LOCATION_START_MENU,
461 dist, start_menu_properties, 465 dist, start_menu_properties,
462 shortcut_operation); 466 shortcut_operation);
463 } 467 }
464 468
465 void RegisterChromeOnMachine(const InstallerState& installer_state, 469 void RegisterChromeOnMachine(const InstallerState& installer_state,
466 const Product& product, 470 const Product& product,
467 bool make_chrome_default) { 471 bool make_chrome_default) {
468 DCHECK(product.is_chrome()); 472 DCHECK(product.is_chrome());
469 473
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 if (app_host_path.empty()) 698 if (app_host_path.empty())
695 return false; 699 return false;
696 700
697 CommandLine cmd(app_host_path); 701 CommandLine cmd(app_host_path);
698 cmd.AppendSwitchASCII(::switches::kInstallFromWebstore, app_code); 702 cmd.AppendSwitchASCII(::switches::kInstallFromWebstore, app_code);
699 VLOG(1) << "App install command: " << cmd.GetCommandLineString(); 703 VLOG(1) << "App install command: " << cmd.GetCommandLineString();
700 return base::LaunchProcess(cmd, base::LaunchOptions(), NULL); 704 return base::LaunchProcess(cmd, base::LaunchOptions(), NULL);
701 } 705 }
702 706
703 } // namespace installer 707 } // namespace installer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698