Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / installer / util / google_chrome_binaries_distribution.cc
blobc5640f8163d7f396a4781553edb581e08f4cd3a3
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // This file defines a class that contains various method related to branding.
7 #include "chrome/installer/util/google_chrome_binaries_distribution.h"
9 #include "chrome/installer/util/google_update_constants.h"
10 #include "chrome/installer/util/google_update_settings.h"
11 #include "chrome/installer/util/install_util.h"
12 #include "chrome/installer/util/updating_app_registration_data.h"
14 namespace {
16 const wchar_t kChromeBinariesGuid[] = L"{4DC8B4CA-1BDA-483e-B5FA-D3C12E15B62D}";
17 const wchar_t kChromeBinariesName[] = L"Google Chrome binaries";
19 } // namespace
21 GoogleChromeBinariesDistribution::GoogleChromeBinariesDistribution()
22 : ChromiumBinariesDistribution(scoped_ptr<AppRegistrationData>(
23 new UpdatingAppRegistrationData(kChromeBinariesGuid))) {
26 base::string16 GoogleChromeBinariesDistribution::GetDisplayName() {
27 return kChromeBinariesName;
30 base::string16 GoogleChromeBinariesDistribution::GetShortcutName(
31 ShortcutType shortcut_type) {
32 NOTREACHED();
33 return base::string16();
36 void GoogleChromeBinariesDistribution::UpdateInstallStatus(bool system_install,
37 installer::ArchiveType archive_type,
38 installer::InstallStatus install_status) {
39 GoogleUpdateSettings::UpdateInstallStatus(system_install,
40 archive_type, InstallUtil::GetInstallReturnCode(install_status),
41 kChromeBinariesGuid);