diff options
author | rahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-18 21:39:43 +0000 |
---|---|---|
committer | rahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-18 21:39:43 +0000 |
commit | 8bcdcbe8e59f804e03f75e86744211210c64484a (patch) | |
tree | 06a04450b42770a59ecab09998608c005fed391d /chrome/installer/util/install_util.h | |
parent | af784739ebdc4ca47d9d52e366587e4c7ba2313b (diff) | |
download | chromium_src-8bcdcbe8e59f804e03f75e86744211210c64484a.zip chromium_src-8bcdcbe8e59f804e03f75e86744211210c64484a.tar.gz chromium_src-8bcdcbe8e59f804e03f75e86744211210c64484a.tar.bz2 |
First set of changes to start separating Google specific branding from Chromium. This change mostly tries to modify installer to install Chromium or Google Chrome depending on a compile flag. The goal is to try to isolate all the differences in a single class that can be overridden for customization. There is also a lot of refactoring to make this happen.
Some changes are yet to be done but I didn't want to make this change even bigger than it already is. With all these changes the default build should still work as it is (Google Chrome should get installed/uninstalled). The changes yet to be done:
- Separating string resources (this is marked by TODO in one of the files)
- Generate different chrome.7z (Chromium will not include rlz.dll) for mini_installer
BUG=1296800
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@999 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/install_util.h')
-rw-r--r-- | chrome/installer/util/install_util.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/chrome/installer/util/install_util.h b/chrome/installer/util/install_util.h index 69884e9..3c35a3f 100644 --- a/chrome/installer/util/install_util.h +++ b/chrome/installer/util/install_util.h @@ -45,34 +45,12 @@ // independently. class InstallUtil { public: - // This method gets the Google Update registry key path for Chrome. - // i.e. - Software\Google\Update\Clients\<chrome-guid>"; - static std::wstring GetChromeGoogleUpdateKey(); - // Find the version of Chrome installed on the system by checking the // Google Update registry key. Returns the version or NULL if no version is // found. // system_install: if true, looks for version number under the HKLM root, // otherwise looks under the HKCU. static installer::Version * GetChromeVersion(bool system_install); - - // This method generates the new value for Oamaha "ap" key for Chrome - // based on whether we are doing incremental install (or not) and whether - // the install succeeded. - // - If install worked, remove the magic string (if present). - // - If incremental installer failed, append a magic string (if - // not present already). - // - If full installer failed, still remove this magic - // string (if it is present already). - // - // diff_install: tells whether this is incremental install or not. - // install_status: if 0, means installation was successful. - // value: current value of Google Update "ap" key. - static std::wstring GetNewGoogleUpdateApKey(bool diff_install, - installer_util::InstallStatus status, const std::wstring& value); - - // Given an InstallStatus it tells whether the install was sucessful or not. - static bool InstallSuccessful(installer_util::InstallStatus status); private: DISALLOW_EVIL_CONSTRUCTORS(InstallUtil); }; |