OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/package_properties.h" | 5 #include "chrome/installer/util/package_properties.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "chrome/installer/util/browser_distribution.h" | 9 #include "chrome/installer/util/browser_distribution.h" |
10 #include "chrome/installer/util/google_update_constants.h" | 10 #include "chrome/installer/util/google_update_constants.h" |
11 #include "chrome/installer/util/google_update_settings.h" | 11 #include "chrome/installer/util/google_update_settings.h" |
(...skipping 23 matching lines...) Expand all Loading... |
35 const std::wstring& state_key, | 35 const std::wstring& state_key, |
36 const std::wstring& state_medium_key, | 36 const std::wstring& state_medium_key, |
37 const std::wstring& version_key) | 37 const std::wstring& version_key) |
38 : guid_(guid), state_key_(state_key), state_medium_key_(state_medium_key), | 38 : guid_(guid), state_key_(state_key), state_medium_key_(state_medium_key), |
39 version_key_(version_key) { | 39 version_key_(version_key) { |
40 } | 40 } |
41 | 41 |
42 PackagePropertiesImpl::~PackagePropertiesImpl() { | 42 PackagePropertiesImpl::~PackagePropertiesImpl() { |
43 } | 43 } |
44 | 44 |
| 45 const std::wstring& PackagePropertiesImpl::GetAppGuid() { |
| 46 return guid_; |
| 47 } |
| 48 |
45 const std::wstring& PackagePropertiesImpl::GetStateKey() { | 49 const std::wstring& PackagePropertiesImpl::GetStateKey() { |
46 return state_key_; | 50 return state_key_; |
47 } | 51 } |
48 | 52 |
49 const std::wstring& PackagePropertiesImpl::GetStateMediumKey() { | 53 const std::wstring& PackagePropertiesImpl::GetStateMediumKey() { |
50 return state_medium_key_; | 54 return state_medium_key_; |
51 } | 55 } |
52 | 56 |
53 const std::wstring& PackagePropertiesImpl::GetVersionKey() { | 57 const std::wstring& PackagePropertiesImpl::GetVersionKey() { |
54 return version_key_; | 58 return version_key_; |
(...skipping 26 matching lines...) Expand all Loading... |
81 GetKeyForGuid(google_update::kRegPathClientStateMedium, | 85 GetKeyForGuid(google_update::kRegPathClientStateMedium, |
82 kChromePackageGuid), | 86 kChromePackageGuid), |
83 GetKeyForGuid(google_update::kRegPathClients, | 87 GetKeyForGuid(google_update::kRegPathClients, |
84 kChromePackageGuid)) { | 88 kChromePackageGuid)) { |
85 } | 89 } |
86 | 90 |
87 ChromePackageProperties::~ChromePackageProperties() { | 91 ChromePackageProperties::~ChromePackageProperties() { |
88 } | 92 } |
89 | 93 |
90 } // namespace installer | 94 } // namespace installer |
OLD | NEW |