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

Unified Diff: base/win/shortcut.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: base/win/shortcut.cc
===================================================================
--- base/win/shortcut.cc (revision 232633)
+++ base/win/shortcut.cc (working copy)
@@ -143,6 +143,11 @@
}
}
+ if ((properties.options & ShortcutProperties::PROPERTIES_HOTKEY) &&
+ FAILED(i_shell_link->SetHotkey(LOWORD(properties.hotkey)))) {
robertshield 2013/11/04 02:19:55 nit: indent
cpu_(ooo_6.6-7.5) 2013/11/04 19:10:57 Done.
+ return false;
+ }
+
// Release the interfaces to the old shortcut to make sure it doesn't prevent
// overwriting it if needed.
old_i_persist_file.Release();

Powered by Google App Engine
This is Rietveld 408576698