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

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

Issue 11685006: [Fixit-Dec-2012] Auto-launch system-level Chrome post user-level Chrome self-destruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | Annotate | Revision Log
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // Returns true if this is running setup process for Chrome SxS (as 99 // Returns true if this is running setup process for Chrome SxS (as
100 // indicated by the presence of --chrome-sxs on the command line) or if this 100 // indicated by the presence of --chrome-sxs on the command line) or if this
101 // is running Chrome process from the Chrome SxS installation (as indicated 101 // is running Chrome process from the Chrome SxS installation (as indicated
102 // by either --chrome-sxs or the executable path). 102 // by either --chrome-sxs or the executable path).
103 static bool IsChromeSxSProcess(); 103 static bool IsChromeSxSProcess();
104 104
105 // Populates |path| with the path to |file| in the sentinel directory. This is 105 // Populates |path| with the path to |file| in the sentinel directory. This is
106 // the application directory for user-level installs, and the default user 106 // the application directory for user-level installs, and the default user
107 // data dir for system-level installs. Returns false on error. 107 // data dir for system-level installs. Returns false on error.
108 static bool GetSentinelFilePath(const FilePath::CharType* file, 108 static bool GetSentinelFilePath(const FilePath::CharType* file,
109 bool system_install,
109 BrowserDistribution* dist, 110 BrowserDistribution* dist,
110 FilePath* path); 111 FilePath* path);
111 112
112 // Deletes the registry key at path key_path under the key given by root_key. 113 // Deletes the registry key at path key_path under the key given by root_key.
113 static bool DeleteRegistryKey(HKEY root_key, const string16& key_path); 114 static bool DeleteRegistryKey(HKEY root_key, const string16& key_path);
114 115
115 // Deletes the registry value named value_name at path key_path under the key 116 // Deletes the registry value named value_name at path key_path under the key
116 // given by reg_root. 117 // given by reg_root.
117 static bool DeleteRegistryValue(HKEY reg_root, const string16& key_path, 118 static bool DeleteRegistryValue(HKEY reg_root, const string16& key_path,
118 const string16& value_name); 119 const string16& value_name);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 private: 199 private:
199 DISALLOW_COPY_AND_ASSIGN(ProgramCompare); 200 DISALLOW_COPY_AND_ASSIGN(ProgramCompare);
200 }; // class ProgramCompare 201 }; // class ProgramCompare
201 202
202 private: 203 private:
203 DISALLOW_COPY_AND_ASSIGN(InstallUtil); 204 DISALLOW_COPY_AND_ASSIGN(InstallUtil);
204 }; 205 };
205 206
206 207
207 #endif // CHROME_INSTALLER_UTIL_INSTALL_UTIL_H_ 208 #endif // CHROME_INSTALLER_UTIL_INSTALL_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698