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

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

Issue 242025: Cleaning up after the initial Chrome Frame commit. Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2009 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 defines a specific implementation of BrowserDistribution class for
6 // Chrome Frame. It overrides the bare minimum of methods necessary to get a
7 // Chrome Frame installer that does not interact with Google Chrome or
8 // Chromium installations.
9
10 #include "chrome/installer/util/chrome_frame_distribution.h"
11
12 #include "chrome/installer/util/l10n_string_util.h"
13 #include "chrome/installer/util/google_update_constants.h"
14
15 #include "installer_util_strings.h"
16
17 std::wstring ChromeFrameDistribution::GetApplicationName() {
18 // TODO(robertshield): localize
19 return L"Google Chrome Frame";
20 }
21
22 std::wstring ChromeFrameDistribution::GetAlternateApplicationName() {
23 // TODO(robertshield): localize
24 return L"Chromium technology in your existing browser";
25 }
26
27 std::wstring ChromeFrameDistribution::GetInstallSubDir() {
28 // TODO(robertshield): localize
29 return L"Google\\Chrome Frame";
30 }
31
32 std::wstring ChromeFrameDistribution::GetPublisherName() {
33 const std::wstring& publisher_name =
34 installer_util::GetLocalizedString(IDS_ABOUT_VERSION_COMPANY_NAME_BASE);
35 return publisher_name;
36 }
37
38 std::wstring ChromeFrameDistribution::GetAppDescription() {
39 return L"Chrome in a Frame.";
40 }
41
42 std::wstring ChromeFrameDistribution::GetStateKey() {
43 std::wstring key(google_update::kRegPathClientState);
44 key.append(L"\\");
45 key.append(google_update::kChromeGuid);
46 return key;
47 }
48
49 std::wstring ChromeFrameDistribution::GetStateMediumKey() {
50 std::wstring key(google_update::kRegPathClientStateMedium);
51 key.append(L"\\");
52 key.append(google_update::kChromeGuid);
53 return key;
54 }
55
56 std::wstring ChromeFrameDistribution::GetStatsServerURL() {
57 return L"https://clients4.google.com/firefox/metrics/collect";
58 }
59
60
61 std::wstring ChromeFrameDistribution::GetUninstallLinkName() {
62 return L"Uninstall Chrome Frame";
63 }
64
65 std::wstring ChromeFrameDistribution::GetUninstallRegPath() {
66 return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\"
67 L"Google Chrome Frame";
68 }
69
70 std::wstring ChromeFrameDistribution::GetVersionKey() {
71 std::wstring key(google_update::kRegPathClients);
72 key.append(L"\\");
73 key.append(google_update::kChromeGuid);
74 return key;
75 }
76
77 int ChromeFrameDistribution::GetInstallReturnCode(
78 installer_util::InstallStatus status) {
79 switch (status) {
80 case installer_util::FIRST_INSTALL_SUCCESS:
81 case installer_util::INSTALL_REPAIRED:
82 case installer_util::NEW_VERSION_UPDATED:
83 case installer_util::HIGHER_VERSION_EXISTS:
84 return 0; // For Google Update's benefit we need to return 0 for success
85 default:
86 return status;
87 }
88 }
OLDNEW
« no previous file with comments | « chrome/installer/util/chrome_frame_distribution.h ('k') | chrome_frame/rename_me_to_supplement.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698