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

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

Issue 23258005: Give SxS distribution its own registration GUIDs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add linker dependency from metro_driver to installer_util Created 7 years, 3 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
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 13 matching lines...) Expand all
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698