| Index: chrome/installer/util/product.cc
|
| ===================================================================
|
| --- chrome/installer/util/product.cc (revision 69165)
|
| +++ chrome/installer/util/product.cc (working copy)
|
| @@ -19,7 +19,7 @@
|
| #include "chrome/installer/util/work_item_list.h"
|
|
|
| using base::win::RegKey;
|
| -using installer::MasterPreferences;
|
| +using installer_util::MasterPreferences;
|
|
|
| namespace {
|
| class ProductIsOfType {
|
| @@ -45,7 +45,7 @@
|
| }
|
|
|
| void WriteInstallerResult(const Products& products,
|
| - installer::InstallStatus status,
|
| + installer_util::InstallStatus status,
|
| int string_resource_id,
|
| const std::wstring* const launch_cmd) {
|
| Products::const_iterator end = products.end();
|
| @@ -76,7 +76,7 @@
|
| const FilePath& install_package = package_->path();
|
| bool success = !install_package.empty();
|
| if (success) {
|
| - CommandLine cmd(install_package.Append(installer::kChromeExe));
|
| + CommandLine cmd(install_package.Append(installer_util::kChromeExe));
|
| success = base::LaunchApp(cmd, false, false, NULL);
|
| }
|
| return success;
|
| @@ -88,7 +88,7 @@
|
| if (install_package.empty())
|
| return false;
|
|
|
| - CommandLine cmd(install_package.Append(installer::kChromeExe));
|
| + CommandLine cmd(install_package.Append(installer_util::kChromeExe));
|
| cmd.AppendArguments(options, false);
|
|
|
| bool success = false;
|
| @@ -129,10 +129,10 @@
|
| msi_ = NOT_MSI; // Covers failure cases below.
|
|
|
| const MasterPreferences& prefs =
|
| - installer::MasterPreferences::ForCurrentProcess();
|
| + installer_util::MasterPreferences::ForCurrentProcess();
|
|
|
| bool is_msi = false;
|
| - prefs.GetBool(installer::master_preferences::kMsi, &is_msi);
|
| + prefs.GetBool(installer_util::master_preferences::kMsi, &is_msi);
|
|
|
| if (!is_msi) {
|
| // We didn't find it in the preferences, try looking in the registry.
|
| @@ -172,7 +172,7 @@
|
| }
|
|
|
| void Product::WriteInstallerResult(
|
| - installer::InstallStatus status, int string_resource_id,
|
| + installer_util::InstallStatus status, int string_resource_id,
|
| const std::wstring* const launch_cmd) const {
|
| HKEY root = system_level_ ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER;
|
| std::wstring key(distribution_->GetStateKey());
|
| @@ -181,19 +181,19 @@
|
| scoped_ptr<WorkItemList> install_list(WorkItem::CreateWorkItemList());
|
| install_list->AddCreateRegKeyWorkItem(root, key);
|
| install_list->AddSetRegValueWorkItem(root, key,
|
| - installer::kInstallerResult,
|
| + installer_util::kInstallerResult,
|
| installer_result, true);
|
| install_list->AddSetRegValueWorkItem(root, key,
|
| - installer::kInstallerError,
|
| + installer_util::kInstallerError,
|
| status, true);
|
| if (string_resource_id != 0) {
|
| - std::wstring msg = installer::GetLocalizedString(string_resource_id);
|
| + std::wstring msg = installer_util::GetLocalizedString(string_resource_id);
|
| install_list->AddSetRegValueWorkItem(root, key,
|
| - installer::kInstallerResultUIString, msg, true);
|
| + installer_util::kInstallerResultUIString, msg, true);
|
| }
|
| if (launch_cmd != NULL && !launch_cmd->empty()) {
|
| install_list->AddSetRegValueWorkItem(root, key,
|
| - installer::kInstallerSuccessLaunchCmdLine, *launch_cmd, true);
|
| + installer_util::kInstallerSuccessLaunchCmdLine, *launch_cmd, true);
|
| }
|
| if (!install_list->Do())
|
| LOG(ERROR) << "Failed to record installer error information in registry.";
|
| @@ -252,7 +252,7 @@
|
|
|
| bool ProductPackageMapping::AddDistribution(
|
| BrowserDistribution::Type type,
|
| - const installer::MasterPreferences& prefs) {
|
| + const installer_util::MasterPreferences& prefs) {
|
| BrowserDistribution* distribution =
|
| BrowserDistribution::GetSpecificDistribution(type, prefs);
|
| if (!distribution) {
|
|
|