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

Unified Diff: chrome/install_static/install_util.h

Issue 2764963002: Move ProgID methods from BrowserDistribution into install_static. (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/install_static/install_util.h
diff --git a/chrome/install_static/install_util.h b/chrome/install_static/install_util.h
index a66554e5c3789da89b70cb84cf6df1163447c788..d4329b0be110223fea2e9ff50f9a9a849f5b6eea 100644
--- a/chrome/install_static/install_util.h
+++ b/chrome/install_static/install_util.h
@@ -80,6 +80,18 @@ const wchar_t* GetAppGuid();
// directly.
const wchar_t* GetBaseAppId();
+// Returns the browser's ProgID prefix (e.g., ChromeHTML, ChromiumHTM, etc...).
huangs 2017/03/21 15:35:48 NIT: "etc..." => "etc." or "..."
grt (UTC plus 2) 2017/03/22 08:03:36 Done.
+// The full id is of the form |prefix|.|suffix| and is limited to a maximum
+// length of 39 characters including null-terminator; see
+// https://msdn.microsoft.com/library/windows/desktop/dd542719.aspx for details.
+// We define |suffix| as a fixed-length 26-character alphanumeric identifier,
+// therefore the return value of this function must have a maximum length of 39
huangs 2017/03/21 15:35:48 Might be nice to keep the formula on its own line.
grt (UTC plus 2) 2017/03/22 08:03:36 Done.
+// - 1(null-term) - 26(|suffix|) - 1(dot separator) = 11 characters.
+const wchar_t* GetProgIdPrefix();
+
+// Returns the browser's ProgId description.
+const wchar_t* GetProgIdDescription();
+
// Returns true if usage stats collecting is enabled for this user for the
// current executable.
bool GetCollectStatsConsent();

Powered by Google App Engine
This is Rietveld 408576698