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

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

Issue 2797433002: Include Google Update integration details in crash keys and about:version. (Closed)
Patch Set: components/version_ui/OWNERS now own version_ui_strings.grdp Created 3 years, 8 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_details.h ('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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 // Ensures that the given |full_path| exists, and that the tail component is a 232 // Ensures that the given |full_path| exists, and that the tail component is a
233 // directory. If the directory does not already exist, it will be created. 233 // directory. If the directory does not already exist, it will be created.
234 // Returns false if the final component exists but is not a directory, or on 234 // Returns false if the final component exists but is not a directory, or on
235 // failure to create a directory. 235 // failure to create a directory.
236 bool RecursiveDirectoryCreate(const std::wstring& full_path); 236 bool RecursiveDirectoryCreate(const std::wstring& full_path);
237 237
238 // Returns the unadorned channel name based on the channel strategy for the 238 // Returns the unadorned channel name based on the channel strategy for the
239 // install mode. |from_binaries| forces the registry locations corresponding to 239 // install mode. |from_binaries| forces the registry locations corresponding to
240 // the now-deprecated multi-install binaries to be read, and is only for use by 240 // the now-deprecated multi-install binaries to be read, and is only for use by
241 // the installer. 241 // the installer. |update_ap|, if not null, is set to the raw "ap" value read
242 // from Chrome's ClientState key in the registry. |update_cohort_name|, if not
243 // null, is set to the raw "cohort\name" value read from Chrome's ClientState
244 // key in the registry.
242 std::wstring DetermineChannel(const InstallConstants& mode, 245 std::wstring DetermineChannel(const InstallConstants& mode,
243 bool system_level, 246 bool system_level,
244 bool from_binaries = false); 247 bool from_binaries,
248 std::wstring* update_ap,
249 std::wstring* update_cohort_name);
245 250
246 // Caches the |ProcessType| of the current process. 251 // Caches the |ProcessType| of the current process.
247 extern ProcessType g_process_type; 252 extern ProcessType g_process_type;
248 253
249 } // namespace install_static 254 } // namespace install_static
250 255
251 #endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ 256 #endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/install_static/install_details.h ('k') | chrome/install_static/install_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698