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

Unified Diff: chrome/installer/util/install_util.cc

Issue 5738009: Revert 69167, itself a revert of 69165 - Merge the installer, installer_util ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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/helper.cc ('k') | chrome/installer/util/l10n_string_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/install_util.cc
===================================================================
--- chrome/installer/util/install_util.cc (revision 69167)
+++ chrome/installer/util/install_util.cc (working copy)
@@ -29,7 +29,7 @@
#include "chrome/installer/util/work_item_list.h"
using base::win::RegKey;
-using installer_util::MasterPreferences;
+using installer::MasterPreferences;
bool InstallUtil::ExecuteExeAsAdmin(const CommandLine& cmd, DWORD* exit_code) {
FilePath::StringType program(cmd.GetProgram().value());
@@ -74,7 +74,7 @@
HKEY root = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER;
RegKey key(root, dist->GetUninstallRegPath().c_str(), KEY_READ);
std::wstring uninstall_cmd;
- key.ReadValue(installer_util::kUninstallStringField, &uninstall_cmd);
+ key.ReadValue(installer::kUninstallStringField, &uninstall_cmd);
return uninstall_cmd;
}
@@ -121,7 +121,7 @@
bool InstallUtil::IsChromeFrameProcess() {
const MasterPreferences& prefs =
- installer_util::MasterPreferences::ForCurrentProcess();
+ installer::MasterPreferences::ForCurrentProcess();
return prefs.install_chrome_frame();
}
@@ -129,16 +129,16 @@
CommandLine* command_line = CommandLine::ForCurrentProcess();
CHECK(command_line);
- if (command_line->HasSwitch(installer_util::switches::kChromeSxS))
+ if (command_line->HasSwitch(installer::switches::kChromeSxS))
return true;
// Also return true if we are running from Chrome SxS installed path.
FilePath exe_dir;
PathService::Get(base::DIR_EXE, &exe_dir);
- std::wstring chrome_sxs_dir(installer_util::kGoogleChromeInstallSubDir2);
- chrome_sxs_dir.append(installer_util::kSxSSuffix);
+ std::wstring chrome_sxs_dir(installer::kGoogleChromeInstallSubDir2);
+ chrome_sxs_dir.append(installer::kSxSSuffix);
return FilePath::CompareEqualIgnoreCase(exe_dir.BaseName().value(),
- installer_util::kInstallBinaryDir) &&
+ installer::kInstallBinaryDir) &&
FilePath::CompareEqualIgnoreCase(exe_dir.DirName().BaseName().value(),
chrome_sxs_dir);
}
« no previous file with comments | « chrome/installer/util/helper.cc ('k') | chrome/installer/util/l10n_string_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698