Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / installer / util / updating_app_registration_data.cc
blob26315fe715721a718e22b236cb86792bd6ff288a
1 // Copyright 2014 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.
5 #include "chrome/installer/util/updating_app_registration_data.h"
7 #include "chrome/installer/util/google_update_constants.h"
9 UpdatingAppRegistrationData::UpdatingAppRegistrationData(
10 const base::string16& app_guid) : app_guid_(app_guid) {}
12 UpdatingAppRegistrationData::~UpdatingAppRegistrationData() {}
14 base::string16 UpdatingAppRegistrationData::GetAppGuid() const {
15 return app_guid_;
18 base::string16 UpdatingAppRegistrationData::GetStateKey() const {
19 return base::string16(google_update::kRegPathClientState)
20 .append(1, L'\\')
21 .append(app_guid_);
24 base::string16 UpdatingAppRegistrationData::GetStateMediumKey() const {
25 return base::string16(google_update::kRegPathClientStateMedium)
26 .append(1, L'\\')
27 .append(app_guid_);
30 base::string16 UpdatingAppRegistrationData::GetVersionKey() const {
31 return base::string16(google_update::kRegPathClients)
32 .append(1, L'\\')
33 .append(app_guid_);