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

Side by Side Diff: chrome/installer/util/install_util.h

Issue 2618583005: Remove support for non-browser products from InstallationState and ProductState. (Closed)
Patch Set: sync to position 442664 Created 3 years, 11 months 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 unified diff | Download patch
« no previous file with comments | « chrome/installer/util/helper.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file declares utility functions for the installer. The original reason 5 // This file declares utility functions for the installer. The original reason
6 // for putting these functions in installer\util library is so that we can 6 // for putting these functions in installer\util library is so that we can
7 // separate out the critical logic and write unit tests for it. 7 // separate out the critical logic and write unit tests for it.
8 8
9 #ifndef CHROME_INSTALLER_UTIL_INSTALL_UTIL_H_ 9 #ifndef CHROME_INSTALLER_UTIL_INSTALL_UTIL_H_
10 #define CHROME_INSTALLER_UTIL_INSTALL_UTIL_H_ 10 #define CHROME_INSTALLER_UTIL_INSTALL_UTIL_H_
(...skipping 25 matching lines...) Expand all
36 // e.g. Software\Microsoft\Active Setup\Installed Components\<dist_guid> 36 // e.g. Software\Microsoft\Active Setup\Installed Components\<dist_guid>
37 static base::string16 GetActiveSetupPath(BrowserDistribution* dist); 37 static base::string16 GetActiveSetupPath(BrowserDistribution* dist);
38 38
39 // Attempts to trigger the command that would be run by Active Setup for a 39 // Attempts to trigger the command that would be run by Active Setup for a
40 // system-level Chrome. For use only when system-level Chrome is installed. 40 // system-level Chrome. For use only when system-level Chrome is installed.
41 static void TriggerActiveSetupCommand(); 41 static void TriggerActiveSetupCommand();
42 42
43 // Launches given exe as admin on Vista. 43 // Launches given exe as admin on Vista.
44 static bool ExecuteExeAsAdmin(const base::CommandLine& cmd, DWORD* exit_code); 44 static bool ExecuteExeAsAdmin(const base::CommandLine& cmd, DWORD* exit_code);
45 45
46 // Reads the uninstall command for Chromium from registry and returns it. 46 // Reads the uninstall command for Chromium from the Windows registry and
47 // If system_install is true the command is read from HKLM, otherwise 47 // returns it. If |system_install| is true the command is read from HKLM,
48 // from HKCU. 48 // otherwise from HKCU. Returns an empty CommandLine if Chrome is not
49 static base::CommandLine GetChromeUninstallCmd( 49 // installed.
50 bool system_install, 50 static base::CommandLine GetChromeUninstallCmd(bool system_install);
51 BrowserDistribution::Type distribution_type);
52 51
53 // Find the version of Chrome installed on the system by checking the 52 // Find the version of Chrome installed on the system by checking the
54 // Google Update registry key. Fills |version| with the version or a 53 // Google Update registry key. Fills |version| with the version or a
55 // default-constructed Version if no version is found. 54 // default-constructed Version if no version is found.
56 // system_install: if true, looks for version number under the HKLM root, 55 // system_install: if true, looks for version number under the HKLM root,
57 // otherwise looks under the HKCU. 56 // otherwise looks under the HKCU.
58 static void GetChromeVersion(BrowserDistribution* dist, 57 static void GetChromeVersion(BrowserDistribution* dist,
59 bool system_install, 58 bool system_install,
60 base::Version* version); 59 base::Version* version);
61 60
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 private: 216 private:
218 DISALLOW_COPY_AND_ASSIGN(ProgramCompare); 217 DISALLOW_COPY_AND_ASSIGN(ProgramCompare);
219 }; // class ProgramCompare 218 }; // class ProgramCompare
220 219
221 private: 220 private:
222 DISALLOW_COPY_AND_ASSIGN(InstallUtil); 221 DISALLOW_COPY_AND_ASSIGN(InstallUtil);
223 }; 222 };
224 223
225 224
226 #endif // CHROME_INSTALLER_UTIL_INSTALL_UTIL_H_ 225 #endif // CHROME_INSTALLER_UTIL_INSTALL_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/helper.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698