Skip to content

Commit

Permalink
Remove Chrome Frame quick-enable.
Browse files Browse the repository at this point in the history
BUG=316496
NOTRY=true

Review URL: https://codereview.chromium.org/103253004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241116 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
grt@chromium.org committed Dec 17, 2013
1 parent 4f4167c commit 194b074
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 510 deletions.
2 changes: 0 additions & 2 deletions chrome/chrome_installer.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,6 @@
'installer/setup/archive_patch_helper.h',
'installer/setup/cf_migration.cc',
'installer/setup/cf_migration.h',
'installer/setup/chrome_frame_quick_enable.cc',
'installer/setup/chrome_frame_quick_enable.h',
'installer/setup/install.cc',
'installer/setup/install.h',
'installer/setup/install_worker.cc',
Expand Down
167 changes: 0 additions & 167 deletions chrome/installer/setup/chrome_frame_quick_enable.cc

This file was deleted.

24 changes: 0 additions & 24 deletions chrome/installer/setup/chrome_frame_quick_enable.h

This file was deleted.

44 changes: 7 additions & 37 deletions chrome/installer/setup/install_worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,7 @@ void AddProductSpecificWorkItems(const InstallationState& original_state,
if (p.is_chrome_binaries()) {
AddQueryEULAAcceptanceWorkItems(
installer_state, setup_path, new_version, p, list);
AddQuickEnableChromeFrameWorkItems(
installer_state, original_state, setup_path, new_version, list);
AddQuickEnableChromeFrameWorkItems(installer_state, list);
AddQuickEnableApplicationLauncherWorkItems(
installer_state, original_state, setup_path, new_version, list);
}
Expand Down Expand Up @@ -1512,50 +1511,21 @@ void AddQueryEULAAcceptanceWorkItems(const InstallerState& installer_state,
}

void AddQuickEnableChromeFrameWorkItems(const InstallerState& installer_state,
const InstallationState& machine_state,
const base::FilePath& setup_path,
const Version& new_version,
WorkItemList* work_item_list) {
DCHECK(work_item_list);

const bool system_install = installer_state.system_install();
bool will_have_chrome_frame =
WillProductBePresentAfterSetup(installer_state, machine_state,
BrowserDistribution::CHROME_FRAME);
bool will_have_chrome_binaries =
WillProductBePresentAfterSetup(installer_state, machine_state,
BrowserDistribution::CHROME_BINARIES);

string16 cmd_key(GetRegCommandKey(
BrowserDistribution::GetSpecificDistribution(
BrowserDistribution::CHROME_BINARIES),
kCmdQuickEnableCf));

if (will_have_chrome_frame) {
// Chrome Frame is (to be) installed. Unconditionally remove the Quick
// Enable command from the binaries. We do this even if multi-install Chrome
// isn't installed since we don't want them left behind in any case.
work_item_list->AddDeleteRegKeyWorkItem(
installer_state.root_key(), cmd_key)->set_log_message(
"removing " + WideToASCII(kCmdQuickEnableCf) + " command");
// Unconditionally remove the legacy Quick Enable command from the binaries.
// Do this even if multi-install Chrome isn't installed to ensure that it is
// not left behind in any case.
work_item_list->AddDeleteRegKeyWorkItem(
installer_state.root_key(), cmd_key)->set_log_message(
"removing " + WideToASCII(kCmdQuickEnableCf) + " command");

} else if (will_have_chrome_binaries) {
// Chrome Frame isn't (to be) installed while some other multi-install
// product is (to be) installed. Add the Quick Enable command to
// the binaries.
CommandLine cmd_line(GetGenericQuickEnableCommand(installer_state,
machine_state,
setup_path,
new_version));
// kMultiInstall and kVerboseLogging were processed above.
cmd_line.AppendSwitch(switches::kChromeFrameQuickEnable);
if (installer_state.system_install())
cmd_line.AppendSwitch(switches::kSystemLevel);
AppCommand cmd(cmd_line.GetCommandLineString());
cmd.set_sends_pings(true);
cmd.set_is_web_accessible(true);
cmd.AddWorkItems(installer_state.root_key(), cmd_key, work_item_list);
}
}

} // namespace installer
12 changes: 2 additions & 10 deletions chrome/installer/setup/install_worker.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,9 @@ void AddQueryEULAAcceptanceWorkItems(const InstallerState& installer_state,
const Product& product,
WorkItemList* work_item_list);

// Adds work items to add or remove the "quick-enable-cf" to the multi-installer
// binaries' version key on the basis of the current operation (represented in
// |installer_state|) and the pre-existing machine configuration (represented in
// |machine_state|). |setup_path| (the path to the executable currently being
// run) and |new_version| (the version of the product(s) currently being
// installed) are required when processing product installation; they are unused
// (and may therefore be empty) when uninstalling.
// Adds work items to remove "quick-enable-cf" from the multi-installer
// binaries' version key.
void AddQuickEnableChromeFrameWorkItems(const InstallerState& installer_state,
const InstallationState& machine_state,
const base::FilePath& setup_path,
const base::Version& new_version,
WorkItemList* work_item_list);

} // namespace installer
Expand Down
Loading

0 comments on commit 194b074

Please sign in to comment.