| OLD | NEW |
| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 bool IsProcessTypeInitialized(); | 152 bool IsProcessTypeInitialized(); |
| 153 | 153 |
| 154 // Returns true if invoked in a Chrome process other than the main browser | 154 // Returns true if invoked in a Chrome process other than the main browser |
| 155 // process. False otherwise. | 155 // process. False otherwise. |
| 156 bool IsNonBrowserProcess(); | 156 bool IsNonBrowserProcess(); |
| 157 | 157 |
| 158 // Returns true if the |process_type| has the rights to access the profile. | 158 // Returns true if the |process_type| has the rights to access the profile. |
| 159 // False otherwise. | 159 // False otherwise. |
| 160 bool ProcessNeedsProfileDir(const std::string& process_type); | 160 bool ProcessNeedsProfileDir(const std::string& process_type); |
| 161 | 161 |
| 162 // Returns true if the current process has the rights to access the profile. |
| 163 // False otherwise. |
| 164 bool CurrentProcessNeedsProfileDir(); |
| 165 |
| 162 // Populates |crash_dir| with the crash dump location, respecting modifications | 166 // Populates |crash_dir| with the crash dump location, respecting modifications |
| 163 // to user-data-dir. | 167 // to user-data-dir. |
| 164 // TODO(ananta) | 168 // TODO(ananta) |
| 165 // http://crbug.com/604923 | 169 // http://crbug.com/604923 |
| 166 // Unify this with the Browser Distribution code. | 170 // Unify this with the Browser Distribution code. |
| 167 std::wstring GetCrashDumpLocation(); | 171 std::wstring GetCrashDumpLocation(); |
| 168 | 172 |
| 169 // Returns the contents of the specified |variable_name| from the environment | 173 // Returns the contents of the specified |variable_name| from the environment |
| 170 // block of the calling process. Returns an empty string if the variable does | 174 // block of the calling process. Returns an empty string if the variable does |
| 171 // not exist. | 175 // not exist. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // key in the registry. | 254 // key in the registry. |
| 251 std::wstring DetermineChannel(const InstallConstants& mode, | 255 std::wstring DetermineChannel(const InstallConstants& mode, |
| 252 bool system_level, | 256 bool system_level, |
| 253 bool from_binaries, | 257 bool from_binaries, |
| 254 std::wstring* update_ap, | 258 std::wstring* update_ap, |
| 255 std::wstring* update_cohort_name); | 259 std::wstring* update_cohort_name); |
| 256 | 260 |
| 257 } // namespace install_static | 261 } // namespace install_static |
| 258 | 262 |
| 259 #endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ | 263 #endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ |
| OLD | NEW |