Make Chrome shortcut support setting toast activator CLSID

Desktop / Chromium - Xi Cheng [chromium.org] - 6 November 2017 21:49 EST

This is one prerequisite for Chrome to use the Windows 10 new toast notification features. It enables the toast notifications sent out by Chrome to persist in the Windows action center after Chrome shuts down.

The CLSID written to the shortcut will be used to point to the COM component that implements INotificationActivationCallBack. This COM component willed be registered with the OS to enable activating (launching) Chrome via clicking the native toast notifications.

Bug: 734095 Change-Id: I5e395839c684e5150725e407a839884c2b2e4fad Reviewed-on: https://chromium-review.googlesource.com/744296

350a8e0f8ab9 Make Chrome shortcut support setting toast activator CLSID
base/BUILD.gn | 1 +
base/win/shortcut.cc | 36 ++++++++++++-
base/win/shortcut.h | 13 ++++-
base/win/shortcut_unittest.cc | 12 +++++
base/win/win_util.cc | 13 +++++
base/win/win_util.h | 5 ++
chrome/browser/ui/webui/version_ui.cc | 5 +-
chrome/install_static/chromium_install_modes.cc | 7 ++-
.../install_static/google_chrome_install_modes.cc | 28 ++++++++--
chrome/install_static/install_constants.h | 7 +++
chrome/install_static/install_details.h | 8 +++
chrome/install_static/install_modes_unittest.cc | 4 ++
chrome/install_static/install_util.cc | 5 +-
chrome/install_static/install_util.h | 6 +++
chrome/install_static/install_util_unittest.cc | 63 ++++++++++++++++++++++
chrome/installer/setup/install.cc | 4 ++
chrome/installer/util/shell_util.cc | 6 ++-
chrome/installer/util/shell_util.h | 14 ++++-
chrome/installer/util/shell_util_unittest.cc | 16 ++++++
19 files changed, 241 insertions(+), 12 deletions(-)

Upstream: git.chromium.org


  • Share