diff options
author | huangs@chromium.org <huangs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-30 21:39:37 +0000 |
---|---|---|
committer | huangs@chromium.org <huangs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-30 21:39:37 +0000 |
commit | 6daf7510a1776c85e2add58436c6f6f91d2f3500 (patch) | |
tree | a94abf80e26a8b19f4920131e45e8ebd690bb5a8 /chrome/installer/setup | |
parent | f010765c4093b47650fdf4033468a181f217eb49 (diff) | |
download | chromium_src-6daf7510a1776c85e2add58436c6f6f91d2f3500.zip chromium_src-6daf7510a1776c85e2add58436c6f6f91d2f3500.tar.gz chromium_src-6daf7510a1776c85e2add58436c6f6f91d2f3500.tar.bz2 |
Rename "App Host" to "App Launcher" in user-visible UI
Changes include:
- User-visible strings, e.g., application name, shortcut name, tootips.
- The associated IDS_ message names.
- Log messages.
- Uninstall entry in the registry => Need transient code to delete old uninstall entry.
Changes exclude:
- Executable app_host.exe (correct, since it is a helper program, not the launcher itself).
- App command "quick-enable-application-host".
- Source filenames.
- Comments (separate cleanup -- now we consider "app host" and "app launcher" equivalent, to be cleaned up elsewhere).
- Dead code (--app-host switch and associated code; these should be cleaned up elsewhere).
Caveat: Existing shortcuts that states "App Host" will NOT be forced to say "App Launcher" => This CL is mostly for new installs.
BUG=166980
Review URL: https://chromiumcodereview.appspot.com/12040012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179704 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/setup')
-rw-r--r-- | chrome/installer/setup/setup_main.cc | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/chrome/installer/setup/setup_main.cc b/chrome/installer/setup/setup_main.cc index 9a7cb96..9582423 100644 --- a/chrome/installer/setup/setup_main.cc +++ b/chrome/installer/setup/setup_main.cc @@ -385,7 +385,7 @@ bool CheckMultiInstallConditions(const InstallationState& original_state, original_state.GetProductState( true, // system BrowserDistribution::CHROME_BINARIES)) { - VLOG(1) << "Installing/updating Application Host without binaries."; + VLOG(1) << "Installing/updating App Launcher without binaries."; } else { // Somehow the binaries were present when the quick-enable app host // command was run, but now they appear to be missing. @@ -395,7 +395,8 @@ bool CheckMultiInstallConditions(const InstallationState& original_state, BrowserDistribution::CHROME_BINARIES))); binaries_to_add->SetOption(installer::kOptionMultiInstall, true); binaries = installer_state->AddProduct(&binaries_to_add); - VLOG(1) << "Adding binaries for pre-existing App Host installation."; + VLOG(1) << + "Adding binaries for pre-existing App Launcher installation."; } } @@ -489,7 +490,7 @@ bool CheckAppHostPreconditions(const InstallationState& original_state, if (installer_state->FindProduct(BrowserDistribution::CHROME_APP_HOST)) { if (!installer_state->is_multi_install()) { - LOG(DFATAL) << "Application Host requires multi install"; + LOG(DFATAL) << "App Launcher requires multi install"; *status = installer::APP_HOST_REQUIRES_MULTI_INSTALL; // No message string since there is nothing a user can do. installer_state->WriteInstallerResult(*status, 0, NULL); @@ -497,7 +498,7 @@ bool CheckAppHostPreconditions(const InstallationState& original_state, } if (installer_state->system_install()) { - LOG(DFATAL) << "Application Host may only be installed at user-level."; + LOG(DFATAL) << "App Launcher may only be installed at user-level."; *status = installer::APP_HOST_REQUIRES_USER_LEVEL; // No message string since there is nothing a user can do. installer_state->WriteInstallerResult(*status, 0, NULL); @@ -782,7 +783,7 @@ installer::InstallStatus InstallProductsHelper( message_id = IDS_INSTALL_HIGHER_VERSION_CB_CF_BASE; break; default: - message_id = IDS_INSTALL_HIGHER_VERSION_APP_HOST_BASE; + message_id = IDS_INSTALL_HIGHER_VERSION_APP_LAUNCHER_BASE; break; } @@ -1572,6 +1573,24 @@ google_breakpad::ExceptionHandler* InitializeCrashReporting( return breakpad; } +// We renamed "Google Chrome App Host" to "Google Chrome App Launcher", +// and need to do the same in the Windows\CurrentVersion\Uninstall registry key. +// The addition / removal of the new key is handled elsewhere. +// It remains to remove the old key where appropriate. +// TODO(huangs): Remove this in early March. +void RemoveDeprecatedAppHostUninstallEntry( + const InstallerState& installer_state) { + const Product* app_host = + installer_state.FindProduct(BrowserDistribution::CHROME_APP_HOST); + if (app_host) { + const string16 kDeprecatedUninstallRegPath(L"Software\\Microsoft\\Windows\\" + L"CurrentVersion\\Uninstall\\Google Chrome App Host"); + InstallUtil::DeleteRegistryKey(installer_state.root_key(), + kDeprecatedUninstallRegPath); + } +} + + } // namespace int WINAPI wWinMain(HINSTANCE instance, HINSTANCE prev_instance, @@ -1675,6 +1694,11 @@ int WINAPI wWinMain(HINSTANCE instance, HINSTANCE prev_instance, InstallProducts(original_state, cmd_line, prefs, &installer_state); } + // TODO(huangs): Remove this in early March. + if (!InstallUtil::GetInstallReturnCode(install_status)) + RemoveDeprecatedAppHostUninstallEntry(installer_state); + + // Validate that the machine is now in a good state following the operation. // TODO(grt): change this to log at DFATAL once we're convinced that the // validator handles all cases properly. |