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

Unified Diff: chrome/installer/util/shell_util.h

Issue 10542031: Suffix Chrome's appid on user-level installs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to r142814 Created 8 years, 6 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
« no previous file with comments | « chrome/installer/util/google_chrome_sxs_distribution.cc ('k') | chrome/installer/util/shell_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/shell_util.h
diff --git a/chrome/installer/util/shell_util.h b/chrome/installer/util/shell_util.h
index 4be4dbb5a4ab9c4719f160fbedf968e579c7fe20..a29caddafe4100c985a69cc7e77c860aa858d52c 100644
--- a/chrome/installer/util/shell_util.h
+++ b/chrome/installer/util/shell_util.h
@@ -242,6 +242,20 @@ class ShellUtil {
static string16 GetApplicationName(BrowserDistribution* dist,
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
+ // GetCurrentInstallationSuffix() above).
+ static string16 GetBrowserModelId(BrowserDistribution* dist,
+ const string16& chrome_exe);
+
+ // Returns an AppUserModelId composed of each member of |components| separated
+ // by dots.
+ // The returned appid is guaranteed to be no longer than
+ // chrome::kMaxAppModelIdLength (some of the components might have been
+ // shortened to enforce this).
+ static string16 BuildAppModelId(const std::vector<string16>& components);
+
// Returns true if Chrome can make itself the default browser without relying
// on the Windows shell to prompt the user. This is the case for versions of
// Windows prior to Windows 8.
« no previous file with comments | « chrome/installer/util/google_chrome_sxs_distribution.cc ('k') | chrome/installer/util/shell_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698