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

Unified 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, 3 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/chrome_frame_distribution.h ('k') | chrome_frame/rename_me_to_supplement.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/chrome_frame_distribution.cc
===================================================================
--- chrome/installer/util/chrome_frame_distribution.cc (revision 0)
+++ chrome/installer/util/chrome_frame_distribution.cc (revision 0)
@@ -0,0 +1,88 @@
+// Copyright (c) 2009 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 defines a specific implementation of BrowserDistribution class for
+// Chrome Frame. It overrides the bare minimum of methods necessary to get a
+// Chrome Frame installer that does not interact with Google Chrome or
+// Chromium installations.
+
+#include "chrome/installer/util/chrome_frame_distribution.h"
+
+#include "chrome/installer/util/l10n_string_util.h"
+#include "chrome/installer/util/google_update_constants.h"
+
+#include "installer_util_strings.h"
+
+std::wstring ChromeFrameDistribution::GetApplicationName() {
+ // TODO(robertshield): localize
+ return L"Google Chrome Frame";
+}
+
+std::wstring ChromeFrameDistribution::GetAlternateApplicationName() {
+ // TODO(robertshield): localize
+ return L"Chromium technology in your existing browser";
+}
+
+std::wstring ChromeFrameDistribution::GetInstallSubDir() {
+ // TODO(robertshield): localize
+ return L"Google\\Chrome Frame";
+}
+
+std::wstring ChromeFrameDistribution::GetPublisherName() {
+ const std::wstring& publisher_name =
+ installer_util::GetLocalizedString(IDS_ABOUT_VERSION_COMPANY_NAME_BASE);
+ return publisher_name;
+}
+
+std::wstring ChromeFrameDistribution::GetAppDescription() {
+ return L"Chrome in a Frame.";
+}
+
+std::wstring ChromeFrameDistribution::GetStateKey() {
+ std::wstring key(google_update::kRegPathClientState);
+ key.append(L"\\");
+ key.append(google_update::kChromeGuid);
+ return key;
+}
+
+std::wstring ChromeFrameDistribution::GetStateMediumKey() {
+ std::wstring key(google_update::kRegPathClientStateMedium);
+ key.append(L"\\");
+ key.append(google_update::kChromeGuid);
+ return key;
+}
+
+std::wstring ChromeFrameDistribution::GetStatsServerURL() {
+ return L"https://clients4.google.com/firefox/metrics/collect";
+}
+
+
+std::wstring ChromeFrameDistribution::GetUninstallLinkName() {
+ return L"Uninstall Chrome Frame";
+}
+
+std::wstring ChromeFrameDistribution::GetUninstallRegPath() {
+ return L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\"
+ L"Google Chrome Frame";
+}
+
+std::wstring ChromeFrameDistribution::GetVersionKey() {
+ std::wstring key(google_update::kRegPathClients);
+ key.append(L"\\");
+ key.append(google_update::kChromeGuid);
+ return key;
+}
+
+int ChromeFrameDistribution::GetInstallReturnCode(
+ installer_util::InstallStatus status) {
+ switch (status) {
+ case installer_util::FIRST_INSTALL_SUCCESS:
+ case installer_util::INSTALL_REPAIRED:
+ case installer_util::NEW_VERSION_UPDATED:
+ case installer_util::HIGHER_VERSION_EXISTS:
+ return 0; // For Google Update's benefit we need to return 0 for success
+ default:
+ return status;
+ }
+}
Property changes on: chrome\installer\util\chrome_frame_distribution.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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