Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(911)

Side by Side Diff: chrome/installer/util/updating_app_registration_data.cc

Issue 2718063002: Use install_static::GetAppGuid in place of BrowserDistribution and AppRegistrationData. (Closed)
Patch Set: huangs feedback plus Chromium test fix Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/installer/util/updating_app_registration_data.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « chrome/installer/util/updating_app_registration_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698