diff options
author | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-24 23:40:26 +0000 |
---|---|---|
committer | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-24 23:40:26 +0000 |
commit | 98733819a022a57f401f1b6cf71b0764451bb8ab (patch) | |
tree | 3c3d8e16a8f5705f355381bfaf1fda872082402d /chrome/installer | |
parent | 24d799bf84cd0d930ae49bd2cd177ccf7f26de74 (diff) | |
download | chromium_src-98733819a022a57f401f1b6cf71b0764451bb8ab.zip chromium_src-98733819a022a57f401f1b6cf71b0764451bb8ab.tar.gz chromium_src-98733819a022a57f401f1b6cf71b0764451bb8ab.tar.bz2 |
Adds the eula innerframe param parsing
- eula inner frame is supplied by chrome
- removes fat from the installer (1M)
- depends on another review (50039) from glen
Review URL: http://codereview.chromium.org/42572
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12413 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer')
-rw-r--r-- | chrome/installer/setup/main.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/chrome/installer/setup/main.cc b/chrome/installer/setup/main.cc index 9db35e0..3341a06 100644 --- a/chrome/installer/setup/main.cc +++ b/chrome/installer/setup/main.cc @@ -486,13 +486,19 @@ installer_util::InstallStatus UninstallChrome(const CommandLine& cmd_line, *version, remove_all, force); } -installer_util::InstallStatus ShowEULADialog() { +installer_util::InstallStatus ShowEULADialog(const std::wstring& inner_frame) { LOG(INFO) << "About to show EULA"; std::wstring eula_path = installer_util::GetLocalizedEulaResource(); if (eula_path.empty()) { LOG(ERROR) << "No EULA path available"; return installer_util::EULA_REJECTED; } + // Newer versions of the caller pass an inner frame parameter that must + // be given to the html page being launched. + if (!inner_frame.empty()) { + eula_path += L"?innerframe="; + eula_path += inner_frame; + } installer::EulaHTMLDialog dlg(eula_path); installer::EulaHTMLDialog::Outcome outcome = dlg.ShowModal(); if (installer::EulaHTMLDialog::REJECTED == outcome) { @@ -545,7 +551,9 @@ int WINAPI wWinMain(HINSTANCE instance, HINSTANCE prev_instance, // Check if we need to show the EULA. If it is passed as a command line // then the dialog is shown and regardless of the outcome setup exits here. if (parsed_command_line.HasSwitch(installer_util::switches::kShowEula)) { - installer_util::InstallStatus eula = ShowEULADialog(); + std::wstring inner_frame = + parsed_command_line.GetSwitchValue(installer_util::switches::kShowEula); + installer_util::InstallStatus eula = ShowEULADialog(inner_frame); if (installer_util::EULA_REJECTED != eula) GoogleUpdateSettings::SetEULAConsent(true); return eula; |