Index: chrome/installer/util/shell_util.h |
diff --git a/chrome/installer/util/shell_util.h b/chrome/installer/util/shell_util.h |
index a29caddafe4100c985a69cc7e77c860aa858d52c..a578f114c846f9d25ddb3c258747f3950e3dff21 100644 |
--- a/chrome/installer/util/shell_util.h |
+++ b/chrome/installer/util/shell_util.h |
@@ -16,6 +16,7 @@ |
#include <vector> |
#include "base/basictypes.h" |
+#include "base/md5.h" |
#include "base/string16.h" |
#include "chrome/installer/util/work_item_list.h" |
@@ -243,8 +244,8 @@ class ShellUtil { |
const string16& chrome_exe); |
// Returns the AppUserModelId for |dist|. This identifier is unconditionally |
- // suffixed with the user id for user-level installs (in contrast to other |
- // registration entries which are suffix as described in |
+ // suffixed with a unique id for this user on user-level installs (in contrast |
+ // to other registration entries which are suffixed as described in |
// GetCurrentInstallationSuffix() above). |
static string16 GetBrowserModelId(BrowserDistribution* dist, |
const string16& chrome_exe); |
@@ -405,6 +406,13 @@ class ShellUtil { |
int icon_index, |
uint32 options); |
+ // Returns the base32 encoding (using the [A-Z2-7] alphabet) of |digest|. |
+ // The returned string will be exactly 26 characters in length. |
+ // Note: This means that it does not use suffix the output with '=' signs as |
+ // required by the base32 standard for inputs that aren't a multiple of 5 |
+ // bits. |
+ static string16 MD5DigestToBase32(const base::MD5Digest& digest); |
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(ShellUtil); |
}; |