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

Unified Diff: chrome/installer/util/google_chrome_distribution.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 side-by-side diff with in-line comments
Download patch
Index: chrome/installer/util/google_chrome_distribution.cc
===================================================================
--- chrome/installer/util/google_chrome_distribution.cc (revision 232633)
+++ chrome/installer/util/google_chrome_distribution.cc (working copy)
@@ -9,6 +9,7 @@
#include <windows.h>
#include <msi.h>
+#include <commctrl.h> // For HOTKEYF constants
#include "base/files/file_path.h"
#include "base/path_service.h"
@@ -280,6 +281,11 @@
return true;
}
+uint32 GoogleChromeDistribution::GetSafeModeHotkey() {
+ // Safe mode shortcut is Ctrl+Shift+F10.
+ return MAKEWORD(VK_F10, HOTKEYF_CONTROL | HOTKEYF_SHIFT);
+}
+
// This method checks if we need to change "ap" key in Google Update to try
// full installer as fall back method in case incremental installer fails.
// - If incremental installer fails we append a magic string ("-full"), if
« no previous file with comments | « chrome/installer/util/google_chrome_distribution.h ('k') | chrome/installer/util/google_chrome_distribution_dummy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698