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

Unified Diff: chrome/installer/util/package_properties.cc

Issue 6288009: More installer refactoring in the interest of fixing some bugs and cleaning t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/util/package_properties.h ('k') | chrome/installer/util/package_properties_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/package_properties.cc
===================================================================
--- chrome/installer/util/package_properties.cc (revision 72487)
+++ chrome/installer/util/package_properties.cc (working copy)
@@ -1,94 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/installer/util/package_properties.h"
-
-#include "base/basictypes.h"
-#include "base/string_util.h"
-#include "chrome/installer/util/browser_distribution.h"
-#include "chrome/installer/util/google_update_constants.h"
-#include "chrome/installer/util/google_update_settings.h"
-#include "chrome/installer/util/install_util.h"
-#include "chrome/installer/util/util_constants.h"
-
-namespace {
-
-const wchar_t kChromePackageGuid[] =
- L"{4DC8B4CA-1BDA-483e-B5FA-D3C12E15B62D}";
-
-std::wstring GetKeyForGuid(const wchar_t* base_key, const wchar_t* guid) {
- std::wstring key(base_key);
- key.append(L"\\");
- key.append(guid);
- return key;
-}
-
-} // end namespace
-
-namespace installer {
-
-const char PackageProperties::kPackageProductName[] = "Chrome binaries";
-
-PackagePropertiesImpl::PackagePropertiesImpl(
- const wchar_t* guid,
- const std::wstring& state_key,
- const std::wstring& state_medium_key,
- const std::wstring& version_key)
- : guid_(guid), state_key_(state_key), state_medium_key_(state_medium_key),
- version_key_(version_key) {
-}
-
-PackagePropertiesImpl::~PackagePropertiesImpl() {
-}
-
-const std::wstring& PackagePropertiesImpl::GetAppGuid() {
- return guid_;
-}
-
-const std::wstring& PackagePropertiesImpl::GetStateKey() {
- return state_key_;
-}
-
-const std::wstring& PackagePropertiesImpl::GetStateMediumKey() {
- return state_medium_key_;
-}
-
-const std::wstring& PackagePropertiesImpl::GetVersionKey() {
- return version_key_;
-}
-
-void PackagePropertiesImpl::UpdateInstallStatus(bool system_level,
- bool incremental_install,
- bool multi_install,
- InstallStatus status) {
- if (ReceivesUpdates()) {
- GoogleUpdateSettings::UpdateInstallStatus(system_level,
- incremental_install, multi_install,
- InstallUtil::GetInstallReturnCode(status), guid_);
- }
-}
-
-ChromiumPackageProperties::ChromiumPackageProperties()
- : PackagePropertiesImpl(L"", L"Software\\Chromium", L"Software\\Chromium",
- L"Software\\Chromium") {
-}
-
-ChromiumPackageProperties::~ChromiumPackageProperties() {
-}
-
-ChromePackageProperties::ChromePackageProperties()
- : PackagePropertiesImpl(
- kChromePackageGuid,
- GetKeyForGuid(google_update::kRegPathClientState,
- kChromePackageGuid),
- GetKeyForGuid(google_update::kRegPathClientStateMedium,
- kChromePackageGuid),
- GetKeyForGuid(google_update::kRegPathClients,
- kChromePackageGuid)) {
-}
-
-ChromePackageProperties::~ChromePackageProperties() {
-}
-
-} // namespace installer
« no previous file with comments | « chrome/installer/util/package_properties.h ('k') | chrome/installer/util/package_properties_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698