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

Unified Diff: win8/metro_driver/winrt_utils.cc

Issue 23258005: Give SxS distribution its own registration GUIDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove magic key combo from browser_options_handler.cc Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: win8/metro_driver/winrt_utils.cc
diff --git a/win8/metro_driver/winrt_utils.cc b/win8/metro_driver/winrt_utils.cc
index be348dc61146fc9515c30067b8f9ad52e8f31911..9d45588b6452be7e42b168de078bb02f0fc081c4 100644
--- a/win8/metro_driver/winrt_utils.cc
+++ b/win8/metro_driver/winrt_utils.cc
@@ -11,6 +11,7 @@
#include "base/logging.h"
#include "base/win/scoped_com_initializer.h"
#include "base/win/scoped_comptr.h"
+#include "chrome/installer/util/install_util.h"
void CheckHR(HRESULT hr, const char* message) {
if (FAILED(hr)) {
@@ -207,12 +208,11 @@ string16 ReadArgumentsFromPinnedTaskbarShortcut() {
shortcut = shortcut.Append(
L"Microsoft\\Internet Explorer\\Quick Launch\\User Pinned\\TaskBar");
- // TODO(robertshield): Get this stuff from BrowserDistribution.
-#if defined(GOOGLE_CHROME_BUILD)
- shortcut = shortcut.Append(L"Google Chrome.lnk");
-#else
- shortcut = shortcut.Append(L"Chromium.lnk");
-#endif
+ BrowserDistribution* dist = BrowserDistribution::GetDistribution();
+ base::string16 link_name = dist->GetShortcutName(
+ BrowserDistribution::SHORTCUT_CHROME);
+ link_name.append(installer::kLnkExt);
gab 2013/09/06 18:40:08 I think it's fine to do this inline above (i.e. Ge
zturner 2013/09/06 20:53:16 Done.
+ shortcut = shortcut.Append(link_name);
string16 arguments;
if (GetArgumentsFromShortcut(shortcut, &arguments)) {
« win8/delegate_execute/delegate_execute.cc ('K') | « win8/metro_driver/toast_notification_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698