| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/installer/util/updating_app_registration_data.h" | 5 #include "chrome/installer/util/updating_app_registration_data.h" |
| 6 | 6 |
| 7 #include "chrome/installer/util/google_update_constants.h" | 7 #include "chrome/installer/util/google_update_constants.h" |
| 8 | 8 |
| 9 UpdatingAppRegistrationData::UpdatingAppRegistrationData( | 9 UpdatingAppRegistrationData::UpdatingAppRegistrationData( |
| 10 const base::string16& app_guid) : app_guid_(app_guid) {} | 10 const base::string16& app_guid) : app_guid_(app_guid) {} |
| 11 | 11 |
| 12 UpdatingAppRegistrationData::~UpdatingAppRegistrationData() {} | 12 UpdatingAppRegistrationData::~UpdatingAppRegistrationData() {} |
| 13 | 13 |
| 14 base::string16 UpdatingAppRegistrationData::GetAppGuid() const { | |
| 15 return app_guid_; | |
| 16 } | |
| 17 | |
| 18 base::string16 UpdatingAppRegistrationData::GetStateKey() const { | 14 base::string16 UpdatingAppRegistrationData::GetStateKey() const { |
| 19 return base::string16(google_update::kRegPathClientState) | 15 return base::string16(google_update::kRegPathClientState) |
| 20 .append(1, L'\\') | 16 .append(1, L'\\') |
| 21 .append(app_guid_); | 17 .append(app_guid_); |
| 22 } | 18 } |
| 23 | 19 |
| 24 base::string16 UpdatingAppRegistrationData::GetStateMediumKey() const { | 20 base::string16 UpdatingAppRegistrationData::GetStateMediumKey() const { |
| 25 return base::string16(google_update::kRegPathClientStateMedium) | 21 return base::string16(google_update::kRegPathClientStateMedium) |
| 26 .append(1, L'\\') | 22 .append(1, L'\\') |
| 27 .append(app_guid_); | 23 .append(app_guid_); |
| 28 } | 24 } |
| 29 | 25 |
| 30 base::string16 UpdatingAppRegistrationData::GetVersionKey() const { | 26 base::string16 UpdatingAppRegistrationData::GetVersionKey() const { |
| 31 return base::string16(google_update::kRegPathClients) | 27 return base::string16(google_update::kRegPathClients) |
| 32 .append(1, L'\\') | 28 .append(1, L'\\') |
| 33 .append(app_guid_); | 29 .append(app_guid_); |
| 34 } | 30 } |
| OLD | NEW |