summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/product.cc
diff options
context:
space:
mode:
authorhuangs@chromium.org <huangs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-07 20:37:51 +0000
committerhuangs@chromium.org <huangs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-07 20:37:51 +0000
commit2d457e950bae63ad5d026c4c41405931d15842e0 (patch)
treead45a25952605bb8ca133b07318738961f66aef0 /chrome/installer/util/product.cc
parent27a5485e00fc6a2a1bf7efd73cd7a8bf8bcd9a4e (diff)
downloadchromium_src-2d457e950bae63ad5d026c4c41405931d15842e0.zip
chromium_src-2d457e950bae63ad5d026c4c41405931d15842e0.tar.gz
chromium_src-2d457e950bae63ad5d026c4c41405931d15842e0.tar.bz2
Refactoring shortcut creation code in ShellUtil.
- Renamed: - Chrome - ChromeShortcutProperties => ShellUtil::ShortcutProperties - ChromeShortcutOperation => ShellUtil::ShortcutOperation - ChromeShortcutLocation => ShellUtil::ShortcutLocation - Constants in ShellUtil::ShortcutOperation and ShellUtil::ChromeShortcutLocation are prefixed by "SHELL_". - Subroutine renames. - For Chrome, default values are set early on, rather than injected when translating from ShellUtil::ShortcutProperties to the base version. - Need corresponding change in tests. - In Product / ProductOperations, added AddDefaultShortcutProperties(). BUG=151626 R=erikwright,gab TBR=brettw Review URL: https://chromiumcodereview.appspot.com/11360095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166512 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/product.cc')
-rw-r--r--chrome/installer/util/product.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/installer/util/product.cc b/chrome/installer/util/product.cc
index 2e6c855..5013fa4 100644
--- a/chrome/installer/util/product.cc
+++ b/chrome/installer/util/product.cc
@@ -156,4 +156,11 @@ bool Product::SetChannelFlags(bool set, ChannelInfo* channel_info) const {
return operations_->SetChannelFlags(options_, set, channel_info);
}
+void Product::AddDefaultShortcutProperties(
+ const FilePath& target_exe,
+ ShellUtil::ShortcutProperties* properties) const {
+ return operations_->AddDefaultShortcutProperties(
+ distribution_, target_exe, properties);
+}
+
} // namespace installer