OLD | NEW |
---|---|
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 13 matching lines...) Expand all Loading... | |
24 | 24 |
25 namespace base { | 25 namespace base { |
26 class Version; | 26 class Version; |
27 } | 27 } |
28 | 28 |
29 // This is a utility class that provides common installation related | 29 // This is a utility class that provides common installation related |
30 // utility methods that can be used by installer and also unit tested | 30 // utility methods that can be used by installer and also unit tested |
31 // independently. | 31 // independently. |
32 class InstallUtil { | 32 class InstallUtil { |
33 public: | 33 public: |
34 static string16 GetAppUserModelId(); | |
grt (UTC plus 2)
2013/09/04 03:33:36
de-indent one space and add a comment
zturner
2013/09/05 01:35:29
Function is gone from latest patch.
| |
35 | |
34 // Get the path to this distribution's Active Setup registry entries. | 36 // Get the path to this distribution's Active Setup registry entries. |
35 // e.g. Software\Microsoft\Active Setup\Installed Components\<dist_guid> | 37 // e.g. Software\Microsoft\Active Setup\Installed Components\<dist_guid> |
36 static string16 GetActiveSetupPath(BrowserDistribution* dist); | 38 static string16 GetActiveSetupPath(BrowserDistribution* dist); |
37 | 39 |
38 // Attempts to trigger the command that would be run by Active Setup for a | 40 // Attempts to trigger the command that would be run by Active Setup for a |
39 // system-level Chrome. For use only when system-level Chrome is installed. | 41 // system-level Chrome. For use only when system-level Chrome is installed. |
40 static void TriggerActiveSetupCommand(); | 42 static void TriggerActiveSetupCommand(); |
41 | 43 |
42 // Launches given exe as admin on Vista. | 44 // Launches given exe as admin on Vista. |
43 static bool ExecuteExeAsAdmin(const CommandLine& cmd, DWORD* exit_code); | 45 static bool ExecuteExeAsAdmin(const CommandLine& cmd, DWORD* exit_code); |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
202 private: | 204 private: |
203 DISALLOW_COPY_AND_ASSIGN(ProgramCompare); | 205 DISALLOW_COPY_AND_ASSIGN(ProgramCompare); |
204 }; // class ProgramCompare | 206 }; // class ProgramCompare |
205 | 207 |
206 private: | 208 private: |
207 DISALLOW_COPY_AND_ASSIGN(InstallUtil); | 209 DISALLOW_COPY_AND_ASSIGN(InstallUtil); |
208 }; | 210 }; |
209 | 211 |
210 | 212 |
211 #endif // CHROME_INSTALLER_UTIL_INSTALL_UTIL_H_ | 213 #endif // CHROME_INSTALLER_UTIL_INSTALL_UTIL_H_ |
OLD | NEW |