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

Side by Side Diff: chrome/installer/util/shell_util.cc

Issue 399045: Set prop app id for chromium/application shortcut. (Closed)
Patch Set: more for hbono Created 11 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // This file defines functions that integrate Chrome in Windows shell. These 5 // This file defines functions that integrate Chrome in Windows shell. These
6 // functions can be used by Chrome as well as Chrome installer. All of the 6 // functions can be used by Chrome as well as Chrome installer. All of the
7 // work is done by the local functions defined in anonymous namespace in 7 // work is done by the local functions defined in anonymous namespace in
8 // this class. 8 // this class.
9 9
10 #include "chrome/installer/util/shell_util.h" 10 #include "chrome/installer/util/shell_util.h"
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 int icon_index = 0; 767 int icon_index = 0;
768 installer_util::GetDistroIntegerPreference(prefs.get(), 768 installer_util::GetDistroIntegerPreference(prefs.get(),
769 installer_util::master_preferences::kChromeShortcutIconIndex, 769 installer_util::master_preferences::kChromeShortcutIconIndex,
770 &icon_index); 770 &icon_index);
771 return file_util::CreateShortcutLink(chrome_exe.c_str(), // target 771 return file_util::CreateShortcutLink(chrome_exe.c_str(), // target
772 shortcut.c_str(), // shortcut 772 shortcut.c_str(), // shortcut
773 chrome_path.c_str(), // working dir 773 chrome_path.c_str(), // working dir
774 NULL, // arguments 774 NULL, // arguments
775 description.c_str(), // description 775 description.c_str(), // description
776 chrome_exe.c_str(), // icon file 776 chrome_exe.c_str(), // icon file
777 icon_index); // icon index 777 icon_index, // icon index
778 chrome::kBrowserAppId); // app id
778 } else { 779 } else {
779 return file_util::UpdateShortcutLink(chrome_exe.c_str(), // target 780 return file_util::UpdateShortcutLink(chrome_exe.c_str(), // target
780 shortcut.c_str(), // shortcut 781 shortcut.c_str(), // shortcut
781 chrome_path.c_str(), // working dir 782 chrome_path.c_str(), // working dir
782 NULL, // arguments 783 NULL, // arguments
783 description.c_str(), // description 784 description.c_str(), // description
784 chrome_exe.c_str(), // icon file 785 chrome_exe.c_str(), // icon file
785 0); // icon index 786 0, // icon index
787 chrome::kBrowserAppId); // app id
786 } 788 }
787 } 789 }
OLDNEW
« chrome/common/chrome_constants.h ('K') | « chrome/installer/setup/install.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698