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

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

Issue 2778223004: Move GetBaseAppName into install_static. (Closed)
Patch Set: sync to position 460686 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_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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // kProductPathName[install_suffix]. This is the key used for the browser's 71 // kProductPathName[install_suffix]. This is the key used for the browser's
72 // "Programs and Features" control panel entry for non-MSI installs (the entry 72 // "Programs and Features" control panel entry for non-MSI installs (the entry
73 // for MSI installs is created and owned by Windows Installer). 73 // for MSI installs is created and owned by Windows Installer).
74 std::wstring GetUninstallRegistryPath(); 74 std::wstring GetUninstallRegistryPath();
75 75
76 // Returns the app GUID with which Chrome is registered with Google Update, or 76 // Returns the app GUID with which Chrome is registered with Google Update, or
77 // an empty string if this brand does not integrate with Google Update. This is 77 // an empty string if this brand does not integrate with Google Update. This is
78 // a simple convenience wrapper around InstallDetails. 78 // a simple convenience wrapper around InstallDetails.
79 const wchar_t* GetAppGuid(); 79 const wchar_t* GetAppGuid();
80 80
81 // Returns the unsuffixed application name of this program. This is the base of
82 // the name registered with Default Programs. IMPORTANT: This must only be
83 // called by the installer.
84 std::wstring GetBaseAppName();
85
81 // Returns the unsuffixed portion of the AppUserModelId. The AppUserModelId is 86 // Returns the unsuffixed portion of the AppUserModelId. The AppUserModelId is
82 // used to group an app's windows together on the Windows taskbar along with its 87 // used to group an app's windows together on the Windows taskbar along with its
83 // corresponding shortcuts; see 88 // corresponding shortcuts; see
84 // https://msdn.microsoft.com/library/windows/desktop/dd378459.aspx for more 89 // https://msdn.microsoft.com/library/windows/desktop/dd378459.aspx for more
85 // information. Use ShellUtil::GetBrowserModelId to get the suffixed value -- it 90 // information. Use ShellUtil::GetBrowserModelId to get the suffixed value -- it
86 // is almost never correct to use the unsuffixed (base) portion of this id 91 // is almost never correct to use the unsuffixed (base) portion of this id
87 // directly. 92 // directly.
88 const wchar_t* GetBaseAppId(); 93 const wchar_t* GetBaseAppId();
89 94
90 // Returns the browser's ProgID prefix (e.g., ChromeHTML or ChromiumHTM). The 95 // Returns the browser's ProgID prefix (e.g., ChromeHTML or ChromiumHTM). The
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 std::wstring DetermineChannel(const InstallConstants& mode, 242 std::wstring DetermineChannel(const InstallConstants& mode,
238 bool system_level, 243 bool system_level,
239 bool from_binaries = false); 244 bool from_binaries = false);
240 245
241 // Caches the |ProcessType| of the current process. 246 // Caches the |ProcessType| of the current process.
242 extern ProcessType g_process_type; 247 extern ProcessType g_process_type;
243 248
244 } // namespace install_static 249 } // namespace install_static
245 250
246 #endif // CHROME_INSTALL_STATIC_INSTALL_UTIL_H_ 251 #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