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

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

Issue 6402: Fix some problems with machine level install. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This file defines a class that contains various method related to branding. 5 // This file defines a class that contains various method related to branding.
6 // It provides only default implementations of these methods. Usually to add 6 // It provides only default implementations of these methods. Usually to add
7 // specific branding, we will need to extend this class with a custom 7 // specific branding, we will need to extend this class with a custom
8 // implementation. 8 // implementation.
9 9
10 #include "chrome/installer/util/browser_distribution.h" 10 #include "chrome/installer/util/browser_distribution.h"
11 #include "chrome/installer/util/google_chrome_distribution.h" 11 #include "chrome/installer/util/google_chrome_distribution.h"
12 12
13 BrowserDistribution* BrowserDistribution::GetDistribution() { 13 BrowserDistribution* BrowserDistribution::GetDistribution() {
14 static BrowserDistribution* dist = NULL; 14 static BrowserDistribution* dist = NULL;
15 if (dist == NULL) { 15 if (dist == NULL) {
16 #if defined(GOOGLE_CHROME_BUILD) 16 #if defined(GOOGLE_CHROME_BUILD)
17 dist = new GoogleChromeDistribution(); 17 dist = new GoogleChromeDistribution();
18 #else 18 #else
19 dist = new BrowserDistribution(); 19 dist = new BrowserDistribution();
20 #endif 20 #endif
21 } 21 }
22 return dist; 22 return dist;
23 } 23 }
24 24
25 void BrowserDistribution::DoPostUninstallOperations( 25 void BrowserDistribution::DoPostUninstallOperations(
26 const installer::Version& version) { 26 const installer::Version& version) {
27 } 27 }
28 28
29 void BrowserDistribution::DoPreUninstallOperations() {
30 }
31
32 std::wstring BrowserDistribution::GetApplicationName() { 29 std::wstring BrowserDistribution::GetApplicationName() {
33 return L"Chromium"; 30 return L"Chromium";
34 } 31 }
35 32
36 std::wstring BrowserDistribution::GetInstallSubDir() { 33 std::wstring BrowserDistribution::GetInstallSubDir() {
37 return L"Chromium"; 34 return L"Chromium";
38 } 35 }
39 36
40 std::wstring BrowserDistribution::GetPublisherName() { 37 std::wstring BrowserDistribution::GetPublisherName() {
41 return L"Chromium"; 38 return L"Chromium";
(...skipping 13 matching lines...) Expand all
55 } 52 }
56 53
57 std::wstring BrowserDistribution::GetVersionKey() { 54 std::wstring BrowserDistribution::GetVersionKey() {
58 return L"Software\\Chromium"; 55 return L"Software\\Chromium";
59 } 56 }
60 57
61 void BrowserDistribution::UpdateDiffInstallStatus(bool system_install, 58 void BrowserDistribution::UpdateDiffInstallStatus(bool system_install,
62 bool incremental_install, installer_util::InstallStatus install_status) { 59 bool incremental_install, installer_util::InstallStatus install_status) {
63 } 60 }
64 61
OLDNEW
« no previous file with comments | « chrome/installer/util/browser_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