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

Side by Side Diff: chrome/install_static/install_util.h

Issue 2459583002: Use InstallDetails in setup. (Closed)
Patch Set: another doc comment Created 3 years, 10 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/install_static/install_modes_unittest.cc ('k') | chrome/install_static/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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 contains helper functions which provide information about the 5 // This file contains helper functions which provide information about the
6 // current version of Chrome. This includes channel information, version 6 // current version of Chrome. This includes channel information, version
7 // information etc. This functionality is provided by using functions in 7 // information etc. This functionality is provided by using functions in
8 // kernel32 and advapi32. No other dependencies are allowed in this file. 8 // kernel32 and advapi32. No other dependencies are allowed in this file.
9 9
10 #ifndef CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ 10 #ifndef CHROME_INSTALL_STATIC_INSTALL_UTIL_H_
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 std::wstring GetSwitchValueFromCommandLine(const std::wstring& command_line, 171 std::wstring GetSwitchValueFromCommandLine(const std::wstring& command_line,
172 const std::wstring& switch_name); 172 const std::wstring& switch_name);
173 173
174 // Ensures that the given |full_path| exists, and that the tail component is a 174 // Ensures that the given |full_path| exists, and that the tail component is a
175 // directory. If the directory does not already exist, it will be created. 175 // directory. If the directory does not already exist, it will be created.
176 // Returns false if the final component exists but is not a directory, or on 176 // Returns false if the final component exists but is not a directory, or on
177 // failure to create a directory. 177 // failure to create a directory.
178 bool RecursiveDirectoryCreate(const std::wstring& full_path); 178 bool RecursiveDirectoryCreate(const std::wstring& full_path);
179 179
180 // Returns the unadorned channel name based on the channel strategy for the 180 // Returns the unadorned channel name based on the channel strategy for the
181 // install mode. 181 // install mode. |from_binaries| forces the registry locations corresponding to
182 std::wstring DetermineChannel(const InstallConstants& mode, bool system_level); 182 // the now-deprecated multi-install binaries to be read, and is only for use by
183 // the installer.
184 std::wstring DetermineChannel(const InstallConstants& mode,
185 bool system_level,
186 bool from_binaries = false);
183 187
184 // Caches the |ProcessType| of the current process. 188 // Caches the |ProcessType| of the current process.
185 extern ProcessType g_process_type; 189 extern ProcessType g_process_type;
186 190
187 } // namespace install_static 191 } // namespace install_static
188 192
189 #endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ 193 #endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/install_static/install_modes_unittest.cc ('k') | chrome/install_static/install_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698