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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4 //
5 // This file declares a class that contains various method related to branding.
6
7 #include "chrome/installer/util/google_chrome_binaries_distribution.h"
8
9 #include "chrome/installer/util/google_update_constants.h"
10 #include "chrome/installer/util/google_update_settings.h"
11 #include "chrome/installer/util/install_util.h"
12
13 namespace {
14
15 const wchar_t kChromeBinariesGuid[] = L"{4DC8B4CA-1BDA-483e-B5FA-D3C12E15B62D}";
16 const wchar_t kChromeBinariesName[] = L"Google Chrome binaries";
17
18 } // namespace
19
20 GoogleChromeBinariesDistribution::GoogleChromeBinariesDistribution()
21 : ChromiumBinariesDistribution() {
22 }
23
24 std::wstring GoogleChromeBinariesDistribution::GetAppGuid() {
25 return kChromeBinariesGuid;
26 }
27
28 std::wstring GoogleChromeBinariesDistribution::GetAppShortCutName() {
29 return kChromeBinariesName;
30 }
31
32 std::wstring GoogleChromeBinariesDistribution::GetStateKey() {
33 return std::wstring(google_update::kRegPathClientState)
34 .append(1, L'\\')
35 .append(kChromeBinariesGuid);
36 }
37
38 std::wstring GoogleChromeBinariesDistribution::GetStateMediumKey() {
39 return std::wstring(google_update::kRegPathClientStateMedium)
40 .append(1, L'\\')
41 .append(kChromeBinariesGuid);
42 }
43
44 std::wstring GoogleChromeBinariesDistribution::GetVersionKey() {
45 return std::wstring(google_update::kRegPathClients)
46 .append(1, L'\\')
47 .append(kChromeBinariesGuid);
48 }
49
50 void GoogleChromeBinariesDistribution::UpdateInstallStatus(bool system_install,
51 bool incremental_install, bool multi_install,
52 installer::InstallStatus install_status) {
53 GoogleUpdateSettings::UpdateInstallStatus(system_install,
54 incremental_install, multi_install,
55 InstallUtil::GetInstallReturnCode(install_status), kChromeBinariesGuid);
56 }
OLDNEW
« 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