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

Unified Diff: chrome/installer/util/google_chrome_binaries_distribution.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
Index: chrome/installer/util/google_chrome_binaries_distribution.cc
===================================================================
--- chrome/installer/util/google_chrome_binaries_distribution.cc (revision 0)
+++ chrome/installer/util/google_chrome_binaries_distribution.cc (revision 0)
@@ -0,0 +1,56 @@
+// 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.
+//
+// This file declares a class that contains various method related to branding.
+
+#include "chrome/installer/util/google_chrome_binaries_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"
+
+namespace {
+
+const wchar_t kChromeBinariesGuid[] = L"{4DC8B4CA-1BDA-483e-B5FA-D3C12E15B62D}";
+const wchar_t kChromeBinariesName[] = L"Google Chrome binaries";
+
+} // namespace
+
+GoogleChromeBinariesDistribution::GoogleChromeBinariesDistribution()
+ : ChromiumBinariesDistribution() {
+}
+
+std::wstring GoogleChromeBinariesDistribution::GetAppGuid() {
+ return kChromeBinariesGuid;
+}
+
+std::wstring GoogleChromeBinariesDistribution::GetAppShortCutName() {
+ return kChromeBinariesName;
+}
+
+std::wstring GoogleChromeBinariesDistribution::GetStateKey() {
+ return std::wstring(google_update::kRegPathClientState)
+ .append(1, L'\\')
+ .append(kChromeBinariesGuid);
+}
+
+std::wstring GoogleChromeBinariesDistribution::GetStateMediumKey() {
+ return std::wstring(google_update::kRegPathClientStateMedium)
+ .append(1, L'\\')
+ .append(kChromeBinariesGuid);
+}
+
+std::wstring GoogleChromeBinariesDistribution::GetVersionKey() {
+ return std::wstring(google_update::kRegPathClients)
+ .append(1, L'\\')
+ .append(kChromeBinariesGuid);
+}
+
+void GoogleChromeBinariesDistribution::UpdateInstallStatus(bool system_install,
+ bool incremental_install, bool multi_install,
+ installer::InstallStatus install_status) {
+ GoogleUpdateSettings::UpdateInstallStatus(system_install,
+ incremental_install, multi_install,
+ InstallUtil::GetInstallReturnCode(install_status), kChromeBinariesGuid);
+}
Property changes on: chrome\installer\util\google_chrome_binaries_distribution.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/installer/util/google_chrome_binaries_distribution.h ('k') | chrome/installer/util/google_chrome_distribution.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698