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.
4
5#include "chrome/installer/util/updating_app_registration_data.h"
6
7#include "chrome/installer/util/google_update_constants.h"
8
9UpdatingAppRegistrationData::UpdatingAppRegistrationData(
10    const base::string16& app_guid) : app_guid_(app_guid) {}
11
12UpdatingAppRegistrationData::~UpdatingAppRegistrationData() {}
13
14base::string16 UpdatingAppRegistrationData::GetAppGuid() const {
15  return app_guid_;
16}
17
18base::string16 UpdatingAppRegistrationData::GetStateKey() const {
19  return base::string16(google_update::kRegPathClientState)
20      .append(1, L'\\')
21      .append(app_guid_);
22}
23
24base::string16 UpdatingAppRegistrationData::GetStateMediumKey() const {
25  return base::string16(google_update::kRegPathClientStateMedium)
26      .append(1, L'\\')
27      .append(app_guid_);
28}
29
30base::string16 UpdatingAppRegistrationData::GetVersionKey() const {
31  return base::string16(google_update::kRegPathClients)
32      .append(1, L'\\')
33      .append(app_guid_);
34}
35